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.

On part PRIVMSG user

Old posts that have not been replied to for several years.
Locked
R
Ryan

On part PRIVMSG user

Post by Ryan »

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
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

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.
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

Code: Select all

bind part $mychan * msg:part
should be

Code: Select all

bind part - "$mychan *" msg:part
Elen sila lúmenn' omentielvo
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

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 »

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 :)
m
mortician
Voice
Posts: 37
Joined: Sun Sep 22, 2002 6:35 pm
Location: Tsjakamaka
Contact:

Post by mortician »

add this bind:

Code: Select all

bind sign - "$mychan *"  msg:part
It is a mistake to think you can solve any major problems just with potatoes.
Locked