egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

general question

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
infexious
Voice


Joined: 11 Aug 2005
Posts: 3

PostPosted: Thu Aug 11, 2005 2:37 pm    Post subject: general question Reply with quote

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
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Thu Aug 11, 2005 2:53 pm    Post subject: Reply with quote

yeah, see contrib/m_opme.c in hybrid distro for "ops itself"
Back to top
View user's profile Send private message Visit poster's website
infexious
Voice


Joined: 11 Aug 2005
Posts: 3

PostPosted: Thu Aug 11, 2005 4:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Thu Aug 11, 2005 5:00 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
infexious
Voice


Joined: 11 Aug 2005
Posts: 3

PostPosted: Thu Aug 11, 2005 5:08 pm    Post subject: Reply with quote

thank you indeed
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber