| View previous topic :: View next topic |
| Author |
Message |
MattShiloh Voice
Joined: 25 Apr 2007 Posts: 2 Location: The Inter-tubes
|
Posted: Wed Apr 25, 2007 10:59 am Post subject: Eggdrop De-Op |
|
|
The company I work for runs an internal IRC Server that we use for a "unofficial" communications method when our SIP Server decides to take a nap, and so that the Linux kids can talk to the others. On this server our admin runs an eggdrop that logs channels upon request of the channel founders.
What we have found is that sometimes these channels are abandoned and the channel will drop from reg on the server, but the eggdrop will still join these channels as the channel was on the autojoin. However when the channel isn't registered, our eggdrop automatically gets ops... and we don't want that. So my question is:
Does anyone know of a way in which to make eggdrop automatically remove ops from itself when it gets them, or is given them by someone (ie a channel op) or by chanserv? _________________ *~*~*~*~*~*
Respectfully,
Matthew
Last edited by MattShiloh on Wed Apr 25, 2007 2:00 pm; edited 1 time in total |
|
| Back to top |
|
 |
r0t3n Owner
Joined: 31 May 2005 Posts: 507 Location: UK
|
Posted: Wed Apr 25, 2007 11:33 am Post subject: |
|
|
Try:
| Code: | bind mode -|- "% *+o*" check:op
proc check:op {nick host hand chan mode victim} {
global botnick
if {$mode == +o && [string equal -nocase $botnick $victim]} {
putquick "MODE $chan -o $botnick" -next
}
}
# when the bot joins a channel and no one is op, and the bot becomes op, we need to reverse this
bind join -|- {*} check:join
proc check:join {nick host hand chan} {
global botnick
if {![string equal -nocase $botnick $nick]} { return }
if {[botisop $chan]} {
putquick "MODE $chan -o $botnick" -next
}
} |
Not tested! _________________ r0t3n @ #r0t3n @ Quakenet |
|
| Back to top |
|
 |
MattShiloh Voice
Joined: 25 Apr 2007 Posts: 2 Location: The Inter-tubes
|
Posted: Wed Apr 25, 2007 2:03 pm Post subject: |
|
|
Our admin/guru tried the code with no success. Thank you for the idea though, it was much better than what I had.
Anyone else have anything? _________________ *~*~*~*~*~*
Respectfully,
Matthew |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Wed Apr 25, 2007 5:50 pm Post subject: |
|
|
| Code: | bind mode - "% +o" bot:deop
proc bot:deop {nick uhost hand chan mc targ} {
if {[isbotnick $targ]} {
pushmode $chan -o $::botnick
}
} |
_________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
|