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 

on join

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
blake
Master


Joined: 23 Feb 2009
Posts: 201

PostPosted: Wed Feb 01, 2012 8:07 pm    Post subject: on join Reply with quote

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
_________________
Blake
UKEasyHosting UKStormWatch
Back to top
View user's profile Send private message Visit poster's website
blake
Master


Joined: 23 Feb 2009
Posts: 201

PostPosted: Wed Feb 01, 2012 8:21 pm    Post subject: Reply with quote

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


Code:
bind join - "#test *!*@*" on_joined
proc on_joined {nick host handle channel} {
  if {$channel == "#test"} {
      putserv "SAJOIN $nick #test2"
  }
}

_________________
Blake
UKEasyHosting UKStormWatch
Back to top
View user's profile Send private message Visit poster's website
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Wed Feb 01, 2012 8:28 pm    Post subject: Reply with quote

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

For reference, see:
http://www.eggheads.org/support/egghtml/1.6.20/tcl-commands.html
and scroll down to:
isbotnick
Back to top
View user's profile Send private message
blake
Master


Joined: 23 Feb 2009
Posts: 201

PostPosted: Wed Feb 01, 2012 8:52 pm    Post subject: Reply with quote

Thank you that worked fine
_________________
Blake
UKEasyHosting UKStormWatch
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests 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