on *:TEXT:!shownick:#:{ if ($address($nick,2) == $address($me,2)) { if (%reportcount != $null) { notice $nick current reports: play -n $nick report.txt } else { msg $nick there are no reports to show } } } on *:TEXT:!remove *:#:{ if ($address($nick,2) == $address($me,2)) { if (%reportcount == 1) { set %reports off unset %reportcount unset %report [ $+ [ $2 ] ] remove report.txt $2 } else { inc %reportcount -1 remove report.txt $2 * msg $nick report for $2 deleted unset %report [ $+ [ $2 ] ] } } }