did you restart the bot or just rehash'd it?
you must .restart in case to change the binds.
Code: Select all
set text [lrange $args 1 end]
Code: Select all
set text [lindex $arg 1]
Code: Select all
bind pubm - "#* *#*" pubm_invs
proc pubm_invs {nick host hand chan args} {
if {![string match "*$chan*" $args]} {
set mask "*!*@[lindex [split $host @] 1]"
newban $mask Spam "\00220 minutes\002 ban for \002Spaming\002 within \002$chan\002 " 20
return 1
}
}
Code: Select all
set responce "Hi, how are you?"
bing msgm - "*" msgm_res
proc msgm_res {nick host hand args} {
putserv "PRIVMSG $nick :$responce"
return 1
}
Code: Select all
return 0
Code: Select all
putlog "I'm not oped in $::channel."
Code: Select all
channel add #chan