This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

binding commands with a botnet

Old posts that have not been replied to for several years.
Locked
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

binding commands with a botnet

Post by Ofloo »

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: Select all

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
Locked