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.

Deop n flag

Old posts that have not been replied to for several years.
Locked
L
Longbow
Voice
Posts: 29
Joined: Thu Jan 13, 2005 9:24 am

Deop n flag

Post by Longbow »

This will re-op anyone...

bind mode - * mode:deop
proc mode:deop {nick uhost hand chan mode victim} {
if {"$mode" == "-o"} {
pushmode $chan +o $victim
}
}


But how can I change it so it will only react if $victim has the n flag?
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Code: Select all

if {[matchattr $victim n]} {pushmode $chan +o $victim}
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Use thise, since the bot cannot op itself also, unless it has an +a or greater flag
and you use /samode $chan +o $nick.

Code: Select all

bind mode - * mode:deop 

proc mode:deop {nick uhost hand chan mode victim} { 
 if {[string equal $mode "-o"] && [matchattr $victim n] && ![isbotnick $victim]} { 
  pushmode $chan +o $victim 
  } 
}
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
arcane
Master
Posts: 280
Joined: Thu Jan 30, 2003 9:18 am
Location: Germany
Contact:

Post by arcane »

hm.. i don't see any important problem in that. if it cannot op itself, it gets an error from the server - that's it.
aVote page back online!
Check out the most popular voting script for eggdrop bots.

Join the metal tavern!
Locked