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.

OnJoin Op in Different Channel

Old posts that have not been replied to for several years.
Locked
w
wyld
Voice
Posts: 1
Joined: Mon May 02, 2005 2:24 am

OnJoin Op in Different Channel

Post by wyld »

Okay, here is the simple idea.

#game and #gameops

1) If user joins #game and is in #gameops, then op user in #game
2) If user joins #gameops, and is in #game, then op user in #game

Thats it. We use a +s passworded channel for ops, so it's a nice simple and dynamic way to control who and how people get ops in our game channel.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

bind join - * ChecknOp

proc ChecknOp {nick uhost hand chan} {
 if {[string equal -nocase #game $chan] && [onchan $nick #gameops] && [botisop $chan]} {
  pushmode $chan +o $nick
 } elseif {[string equal -nocase #gameops $chan] && [onchan $nick #game] && [botisop #game]} {
  pushmode #game +o $nick
 }
}
This should do it.
Locked