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.

on join

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
b
blake
Master
Posts: 201
Joined: Mon Feb 23, 2009 9:42 am
Contact:

on join

Post by blake »

Hey

How do i go about doing a script that will sajoin users to a channel when they join another channel

onjoin #test they get sajoined to test2

Thanks
b
blake
Master
Posts: 201
Joined: Mon Feb 23, 2009 9:42 am
Contact:

Post by blake »

I have got this far and it works but how do i exclude the bot from this

Code: Select all

bind join - "#test *!*@*" on_joined 
proc on_joined {nick host handle channel} { 
  if {$channel == "#test"} { 
      putserv "SAJOIN $nick #test2" 
  } 
}
w
willyw
Revered One
Posts: 1203
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

Untested.
If it doesn't work, perhaps it will give you the idea anyway.

For reference, see:
http://www.eggheads.org/support/egghtml ... mands.html
and scroll down to:
isbotnick
b
blake
Master
Posts: 201
Joined: Mon Feb 23, 2009 9:42 am
Contact:

Post by blake »

Thank you that worked fine
Post Reply