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.

coding :)

Old posts that have not been replied to for several years.
Locked
e
eiSi
Halfop
Posts: 70
Joined: Thu Mar 07, 2002 8:00 pm

Post by eiSi »

hi folks!

I now, I propably start becoming annoying... but hey, I'm a noob :smile:

ok, now to my question:

how to realize in tcl, that when a user joins a specified channel, the bot should op the user?

thx for your help!
Greetz,
eiSi
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

With something like this..

bind JOIN - * join:op

proc join:op {nick uhost handle channel} {
if {[botisop $channel]} {
putserv "MODE $channel +o $nick" }
}

PS: This will op ANYONE who joins a channel that your eggdrop is in and has op. :smile:
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

for a specific hannel replace from: bind JOIN - * join:op to bind JOIN - #channel_name join:op
e
eiSi
Halfop
Posts: 70
Joined: Thu Mar 07, 2002 8:00 pm

Post by eiSi »

ah thx! :smile:
Locked