on 1:TEXT:!setop*:#:{ if (($nick isop $chan) && ($2 ison $chan) && ($2 !isin $read(ops.txt))) { /write ops.txt $2 /notice $nick The name $2 was set as an online op. } else { /notice $nick You don't have permission to do that. } } on 1:TEXT:!removeop*:#:{ if ($nick isop $chan) { /write -ds $+ $2 ops.txt /notice $nick The name $2 was removed as an online op. } else { /notice $nick You don't have permission to do that. } } on 1:TEXT:!ops:#:{ /msg $nick The current online ops are as follows: /play $nick ops.txt }