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.

protection script

Old posts that have not been replied to for several years.
Locked
User avatar
duofruo
Halfop
Posts: 94
Joined: Thu Oct 23, 2003 3:17 pm
Location: Ploiesti@.ro
Contact:

protection script

Post by duofruo »

i need a script that will deop a person who deops a specific nick in my chan. and that nick to be opped back
Embrace The Inevitable
d
dollar
Op
Posts: 178
Joined: Tue Oct 28, 2003 3:47 pm
Location: Netherlands

Post by dollar »

See the "revenge" and "revenge-mode" chan settings in eggdrop, and take a look at user flag +f.
dollar (or something similar) at:
#eggdrop / #tcl - undernet
#egghelp / #tcl / #eggtcl - efnet
#eggdrop.support / #tcl - quakenet
#eggdrop - ircnet
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Try this, this should work.
It is a very simple example.
#Set the specifed nick, which will be deoped
#to trigger this script.
set deopednick "persons-nick-here"

bind mode - "-o" deoped:nick
bind mode - "*-o*" deoped:nick

proc deoped:nick {nick uhost hand chan mode arg} {
global botnick deopednick
if {($mode == "-o") && ($nick != $botnick) && ([string compare -nocase $deopednick $nick] == 0)} {
putquick "MODE $chan -o $nick"
}
}
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
duofruo
Halfop
Posts: 94
Joined: Thu Oct 23, 2003 3:17 pm
Location: Ploiesti@.ro
Contact:

Post by duofruo »

thx }{
Embrace The Inevitable
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Hmm, so you want to also reop the deoped
nick back.

Okay well we need to add an extra line
and it should work. Infact doing it in one
line would be okay, and would reduce mode
floods.

Here is the code:

Code: Select all

#Set the specifed nick, which will be deoped 
#to trigger this script. 
set deopednick "persons-nick-here" 

bind mode - "-o" deoped:nick 
bind mode - "*-o*" deoped:nick 

proc deoped:nick {nick uhost hand chan mode arg} { 
global botnick deopednick 
if {($mode == "-o") && ($nick != $botnick) && ([string compare -nocase $deopednick $nick] == 0)} { 
putquick "MODE $chan -o+o $arg $deopednick"
} 
}
I think this should do it.
Try it out and let me know.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Locked