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.

Who can help me?!

Old posts that have not been replied to for several years.
Locked
S
Sefu

Who can help me?!

Post by Sefu »

Who can help me? I want a script that invite the people that join my channel, to join another channel(ex. a person join my channel, the bot invites him to another channel) 10x
User avatar
Xpert
Halfop
Posts: 88
Joined: Mon Mar 08, 2004 7:03 am

Post by Xpert »

Use this code:

Code: Select all

set channel "#channel"
set mychan "#channel-to-invite"

bind join - * join:invite
proc join:invite {nick host hand chan} {
  global channel mychan
  if {([string equal -nocase "$channel" "$chan"]) && (![onchan $nick $mychan])} {
    putserv "invite $nick $mychan"
  }
}
Should work good.... :P
Xpert.
Locked