on *:text:!*:#: {
var %get $+(#,.,$1)
var %name $1
var %text $readini(cmds.ini,%get,text)
if (!%text) {
/msg # No such command available.
}
else {
if (%flood3) { return }
set -u30 %flood3 On
/msg # %text
}
}
;----------------
;| Mod Commands |
;----------------
on *:text:#*:#: {
if (ismod) {
if ($1 == #add) {
if ($0 < 3) { msg # Insufficient parameters: Use #add !<command name> <text> | return }
writeini -n cmds.ini $+(#,.,$2) text $3-
/msg # $2 command added as $3-
}
elseif ($1 == #edit) {
if ($0 < 3) { msg # Insufficient parameters: Use #edit !<command name> <text> | return }
writeini -n cmds.ini $+(#,.,$2) text $3-
/msg # Edited $2 to $3-
}
elseif ($1 == #delete) {
/remini cmds.ini $+(#,.,$2)
/msg # Command $2 has been removed.
}
}
}
else {
/msg # $nick $+ , you do not have permission to use mod commands.
}