Hello,
I know this is a discution and not a "Make my script" forum but I really don't have time to learn tcl just to script one little thingy... I hope you might help me
What I want it a when someone gets kicked from channel #m00 the bot sends the user who got kicked a msg or a notice saying You've been kicked from #m00 for help /Join #m00-Help Thanx. I would like to make clear here that this script is for a single channel and not for all channels
Thankyou in advance...
fc/FunChatter - You call it life... I call it IRC!!
bind kick - "#m00 *" msg:on:kick
proc msg:on:kick {nick host hand chan target reason} {
putserv "PRIVMSG $target :You've been kicked from #m00 for help /Join #m00-Help Thanx."
}
#to make it notice change PRIVMSG to NOTICE
I just tested my original code exactly as it was, except the channel ofc
and it works like a charm... there is nothing wrong with the code, check your setup once more please
FunChatter: that script will not work
1. you have not made the $kmsg global within the proc, either add the global kmsg line or call it with $::kmsg
2. read about binds in tcl-command.doc ... you cannot just change the args of a proc and suspect everything to work..
Please re-copy his original code exactly and try it. Don't change *anything* except the name of the channel in the bind command (leave the others alone for now, they don't matter they're just part of the message). If it still doesn't work, post exactly what you have, including the new channel name.
bind kick - "#WorldChat *" msg:on:kick
proc msg:on:kick {nick host hand chan target reason} {
putserv "PRIVMSG $target :You've been kicked from #WorldChat for help /Join #WorldChat-Help Thanx."
}
#to make it notice change PRIVMSG to NOTICE
Btw a small note here... The msg should be send to everyone kicked from #WorldChat no matter if the bot who sends the msg kicked the user So I mean if I or X kick someone the bot should send the msg
fc/FunChatter - You call it life... I call it IRC!!
Here's an example: the user FunChatter is t oped... and FunChatter kicks out the user Spammer I want the user B0t or whatever is the bot nick to send a msg to user Spammer saying that you have been kicked from #WorldChat if you need help join #WorldChat-Help
fc/FunChatter - You call it life... I call it IRC!!