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.

somebody please help me

Old posts that have not been replied to for several years.
Locked
T
THUGNATURE
Voice
Posts: 13
Joined: Tue Apr 08, 2003 9:14 am

somebody please help me

Post by THUGNATURE »

i would like some help to add a public commmand to the optools tcl where i type in the channel !pwn and it does a mass deop in the channel i type it i want to add this feature because i have channel #botwarz where we have botnet warz and it can take a few secs going to dcc chat and typing the command to mass deop it would be much easier when the timer counts down to war i just type !pwn to do the mass deop im a complete newbie to tcls please help me by providing me with the full code to be able do what i requested thank you
User avatar
Dereckson
Voice
Posts: 20
Joined: Thu May 30, 2002 8:00 pm
Location: Belgium
Contact:

Post by Dereckson »

Hello

When you post in a forum, please please use an explicit title !

e.g. add a mass deop feature
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Code: Select all

bind pub o|o !pwn pub:pwn

proc pub:pwn {nick host handle channel arg} {
  set chan [string tolower $channel]
  if {![botisop $chan]} {
    putserv "NOTICE $nick :I'm not oped in $chan channel."
    return
  }
  foreach luser [chanlist $chan] {
    if {[string tolower $luser] == [string tolower $::botnick] || ![isop $luser $chan] || [matchattr [nick2hand $luser] of|fo $chan]} {
      continue
    }
    pushmode $chan -o $luser
  }
}
Once the game is over, the king and the pawn go back in the same box.
Locked