on 1:TEXT:!setop*:#:{ if (($nick isop $chan) && ($2 ison $chan) && ($2 !isin $read(ops.txt)) && ($2 !== $null)) { /write ops.txt $2 /notice $nick The name $2 was set as an online op. } elseif (($nick isop $chan) && ($nick !isin $read(ops.txt)) && ($2 == $null)) { /write ops.txt $nick /notice $nick You were added to the ops list. } else { /notice $nick Access Denied. } } on 1:TEXT:!removeop*:#:{ if (($nick isop $chan) && ($2 !== $null)) { /write -ds $+ $2 ops.txt /notice $nick The name $2 was removed as an online op. } elseif (($2 == $null) && ($nick isop $chan)) { /write -ds $+ $nick ops.txt /notice $nick You were removed from the ops list. } 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 }