on *:text:!addcom *:#: {
if ($nick isop #) {
write commands.txt $2-
msg $chan /me + Command $2 has been created!
}
}
on *:text:!delcom *:#: {
if ($nick isop #) {
if ($read(commands.txt, ns, $2)) {
write -dl $+ $readn commands.txt
msg $chan /me - Command $2- has been removed!
}
}
}
on *:text:!editcom & *:#: {
if ($nick isop #) {
if ($read(commands.txt, ns, $2)) {
write -l $+ $readn commands.txt $2-
msg $chan /me -> Command $2 has been edited!
}
}
}
on *:text:*:#: {
if ($read(commands.txt, ns, $1)) {
msg $chan $v1
}
}