| View previous topic :: View next topic |
| Author |
Message |
infexious Voice
Joined: 11 Aug 2005 Posts: 3
|
Posted: Thu Aug 11, 2005 2:37 pm Post subject: general question |
|
|
We are running HYBRID IRCD (latest version) and EGGDROP (latest version)
Is it possible to configure this setup, so that if the server restarts... the eggdrop reconnects to the irc server, ops itsself then deops anyone thats already opped and sets the channel settings to how the bot has them stored in its database?
if you wish for me to elaborate then i will but i hope i have been clear enough! |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Thu Aug 11, 2005 2:53 pm Post subject: |
|
|
| yeah, see contrib/m_opme.c in hybrid distro for "ops itself" |
|
| Back to top |
|
 |
infexious Voice
Joined: 11 Aug 2005 Posts: 3
|
Posted: Thu Aug 11, 2005 4:31 pm Post subject: |
|
|
k thanks!
Still need answer to the part of the question: "then deops anyone thats already opped and sets the channel settings to how the bot has them stored in its database?"
If that dosent make sence, read the original post.
cheers people |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Thu Aug 11, 2005 5:00 pm Post subject: |
|
|
| Code: |
bind mode - "% +o" foo
proc foo {n u h c m v} {
if {$v == $::botnick} {
foreach n [chanlist $c] {
if {[isop $n $c] && $n != $::botnick} {pushmode $c -o $n}
}
}
}
|
|
|
| Back to top |
|
 |
infexious Voice
Joined: 11 Aug 2005 Posts: 3
|
Posted: Thu Aug 11, 2005 5:08 pm Post subject: |
|
|
| thank you indeed |
|
| Back to top |
|
 |
|