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.

how to check if oped user matches bots +o

Old posts that have not been replied to for several years.
Locked
M
MMore

how to check if oped user matches bots +o

Post by MMore »

I'm trying to learn tcl but I need some help =)

how can I make a little script that when someone get oped it checks if the oped guy have o|o on the bot. I figured out how I can check if the guy that give op have a certain flag, but not the one getting oped. And if he got the flag I will do some stuff with him, but that's not the problem for now. =)


regards
MMore
User avatar
KrzychuG
Master
Posts: 306
Joined: Sat Aug 16, 2003 2:51 pm
Location: Torun, Poland
Contact:

Post by KrzychuG »

Maybe this will help:

Code: Select all

bind mode - * checkop
proc checkop { nick uhost hand chan mode victim } {
  if {$mode == "+o"} then {
    set opped [nick2hand $victim]
    if {[matchattr $opped o|o $chan]} then {
      YOUR CODE
    }
  }
  return 0
} ;# checkop
M
MMore

Post by MMore »

Yepp that's it, thx a lot =)
Locked