Code: Select all
set subword [lindex [split $arg] 0]
Code: Select all
bind pub - $net(trig) net_command
proc net_command {nick host hand chan arg} {
global net
set subword [lindex [split $arg] 0]
if {$subword == "adduserr"} {
putmsg $chan "testing addserver command"
return 0
}
if {$subword == "deluser"} {
putmsg $chan "testing delserver command"
return 0
}
}