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.
Old posts that have not been replied to for several years.
R
Ryan
Post
by Ryan » Mon Jun 09, 2003 3:36 pm
Hello, I'm looking to make it so that when a user parts a channel it will PRIVMSG another user and say something like $nick has left #channel - when I tried it I got my bind's in a loop so eventually just trashed the whole thing
Anyone willing to help out?
Thank's very much
Ryan
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Mon Jun 09, 2003 3:43 pm
Code: Select all
set mychan "#mychan"
set myuser "someone"
bind part $mychan * msg:part
proc msg:part {nick uhost handle channel msg} {
if {[strlwr $nick] != [strlwr $::botnick]} {
putserv "PRIVMSG $::myuser :$nick parted $channel with reason $msg."
}
}
Once the game is over, the king and the pawn go back in the same box.
Papillon
Owner
Posts: 724 Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no
Post
by Papillon » Mon Jun 09, 2003 4:01 pm
Elen sila lúmenn' omentielvo
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Tue Jun 10, 2003 1:49 am
Works fine to me..
Once the game is over, the king and the pawn go back in the same box.
R
Ryan
Post
by Ryan » Tue Jun 10, 2003 3:08 am
Hi, thank you both very much, it works perfect
However, it seems that quits arent considered parts (my mistake
) Is there anyway to add so when a user QUIT's it will also send off the PM?
Thank's again for your help
mortician
Voice
Posts: 37 Joined: Sun Sep 22, 2002 6:35 pm
Location: Tsjakamaka
Contact:
Post
by mortician » Tue Jun 10, 2003 3:49 am
It is a mistake to think you can solve any major problems just with potatoes.