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.

msg on kick...

Old posts that have not been replied to for several years.
F
FunChatter
Voice
Posts: 16
Joined: Thu Jun 05, 2003 2:46 am
Location: Athens, Greece.
Contact:

msg on kick...

Post by FunChatter »

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... :D
fc/FunChatter - You call it life... I call it IRC!!
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

Code: Select all

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
Elen sila lúmenn' omentielvo
Y
Yoda
Halfop
Posts: 78
Joined: Thu Oct 24, 2002 2:57 am
Location: Milano, Italy
Contact:

Post by Yoda »

I tried this script but dont work. no bot errors but simply nothing happen
F
FunChatter
Voice
Posts: 16
Joined: Thu Jun 05, 2003 2:46 am
Location: Athens, Greece.
Contact:

Post by FunChatter »

dosn't work :(
fc/FunChatter - You call it life... I call it IRC!!
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

Did you copy it exactly? Did you remember to change #m00 to your channel name in all the places (e.g. the 'bind' command)?
Y
Yoda
Halfop
Posts: 78
Joined: Thu Oct 24, 2002 2:57 am
Location: Milano, Italy
Contact:

Post by Yoda »

sure, all was ok but nothing happened, no errors and no actions. :roll:
F
FunChatter
Voice
Posts: 16
Joined: Thu Jun 05, 2003 2:46 am
Location: Athens, Greece.
Contact:

Post by FunChatter »

Everything was okay but the code wasn't working... I also tryed changing $target to $nick and changing PRIVMSG to NOTICE but didn't worked...

And I also tryed the following code again with $nick/$target/PRIVMSG/NOTICE...

set kchn "#m00"
set khchn "#m00-help"
set kmsg "You have been kicked from $kchn - For help /Join $khchn Thanx"

bind kick - "$kchn *" msg:on:kick
proc msg:on:kick { nick uhost kchn khchn hand } {
putserv "NOTICE $target :$kmsg"
}

Any more corrections/ideas are welcome :)
fc/FunChatter - You call it life... I call it IRC!!
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

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..
Elen sila lúmenn' omentielvo
F
FunChatter
Voice
Posts: 16
Joined: Thu Jun 05, 2003 2:46 am
Location: Athens, Greece.
Contact:

Post by FunChatter »

I tryed everything and I gave them to friends to try them none work :(
fc/FunChatter - You call it life... I call it IRC!!
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

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.
F
FunChatter
Voice
Posts: 16
Joined: Thu Jun 05, 2003 2:46 am
Location: Athens, Greece.
Contact:

Post by FunChatter »

I got this :D

Code: Select all

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 :D 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!!
User avatar
ReaLz
Op
Posts: 121
Joined: Sat Oct 19, 2002 5:33 am
Location: Athens, Greece

Post by ReaLz »

it will still send the notice even if you were the one that kicked the user out of the channel
«A fantastic spaghetti is a spaghetti that does not exist»
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Actualy, no, $target is the person who got kicked aka. the victim not the kicker, wich is $nick..
Once the game is over, the king and the pawn go back in the same box.
F
FunChatter
Voice
Posts: 16
Joined: Thu Jun 05, 2003 2:46 am
Location: Athens, Greece.
Contact:

Post by FunChatter »

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 :D
fc/FunChatter - You call it life... I call it IRC!!
User avatar
ReaLz
Op
Posts: 121
Joined: Sat Oct 19, 2002 5:33 am
Location: Athens, Greece

Post by ReaLz »

Code: Select all

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." 
}
I think that this script will do this job, is the script you wrote before in this topic.
«A fantastic spaghetti is a spaghetti that does not exist»
Locked