Until a few days ago both BOTs responded the same commands .
Today just one answers me.
What can be changed?
This only happens with this Tcl:
Code: Select all
bind pub n|n !restart restart_bot
bind pub n|n !rehash rehash_bot
bind pub n|n !reload reload_bot
bind pub nt|n !quits quit_bot
proc restart_bot {nick uhost hand chan text} {
global channel_admin
if { $chan != $channel_admin} { return 0 }
putserv "PRIVMSG $chan :Ok, restart...."
putlog "\002RESTART\002 requested by $nick"
utimer 1 restart
}
proc rehash_bot {nick uhost hand chan text} {
global channel_admin
if { $chan != channel_admin} { return 0 }
putserv "PRIVMSG $chan :Ok, rehash...."
putlog "\002Rehash\002 requested by $nick"
utimer 1 rehash
}
proc reload_bot {nick uhost hand chan text} {
global channel_admin
if { $chan != $channel_admin} { return 0 }
putserv "PRIVMSG $chan :Ok, reload...."
putlog "\002Reload\002 requested by $nick"
utimer 1 reload
}
proc quit_bot {nick uhost hand chan text} {
global channel_admin
if { $chan != $channel_admin} { return 0 }
putserv "PRIVMSG $chan :Ok, quit...."
putlog "\002QUIT\002 requested by $nick"
die "good bye!"
}