moving users on join

By F*U*R*B*Y* on Oct 24, 2006

When a user joins your channel they will get a notice then moved to a channel you wish and then make them part the channel they joinned. you must be Serivces Root and you must type .chanset #yourchannel +mj

bind join -|- * mj_join
setudef flag mj

set mj(joinmsg) "just change\nthis to your\n welcome msg"
#### use \n too define a newline

proc mj_join { nick host hand chan } {
global mj
if {[channel get $chan mj] != 1} { [return 0] }
    foreach line [split $mj(joinmsg) \n] {
    putquick "notice $nick :$line"
    putserv "operserv raw svsjoin $nick #channel-to-redirect-them-to"
    putserv "operserv raw svspart $nick $chan"
   }
} 

Comments

Sign in to comment.
Get_A_Fix   -  Nov 15, 2007

I would have used

if {[channel get $chan mj]} {

to match better, but that's just me :P

 Respond  
F*U*R*B*Y*   -  Jan 08, 2007

because the server i wrote this on doesn\'t use /sajoin :P

 Respond  
gourob   -  Jan 08, 2007

why dont u use \" /sajoin user-name #chan \" instead svsjoin cmd, thats fast and better. nice tcl btw

 Respond  
F*U*R*B*Y*   -  Nov 04, 2006

any comments?

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.