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?
Last edited by MattShiloh on Wed Apr 25, 2007 2:00 pm, edited 1 time in total.
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
}
}