Ofloo Owner
Joined: 13 May 2003 Posts: 953 Location: Belguim
|
Posted: Fri Apr 09, 2004 12:43 am Post subject: binding commands with a botnet |
|
|
hmm ive tryed this my botnet is not on all channels on most channels it is the thing is if i use a command i like !opme i don't want all the bots to opme just one how do i do this ..
| Code: | set bind(opme) "1"
proc opme:pub {nick uhost hand chan arg} {
global bind
if {[botisop $chan]} {
if {$bind(opme)} {
if {![isop $nick $chan]} {
putallbots bindopme
pushmode $chan +o $nick
}
} else {
set bind(opme) 1
}
}
}
bind bot - bindopme bind:opme
proc bind:opme {hand idx arg} {
global bind
set bind(opme) "0"
} |
_________________ XplaiN but think of me as stupid |
|