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.

general question

Old posts that have not been replied to for several years.
Locked
i
infexious
Voice
Posts: 3
Joined: Thu Aug 11, 2005 2:05 pm

general question

Post by infexious »

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!
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

yeah, see contrib/m_opme.c in hybrid distro for "ops itself"
i
infexious
Voice
Posts: 3
Joined: Thu Aug 11, 2005 2:05 pm

Post by infexious »

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
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

Code: Select all

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}
      }
   }
}
i
infexious
Voice
Posts: 3
Joined: Thu Aug 11, 2005 2:05 pm

Post by infexious »

thank you indeed
Locked