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.

Message on quit

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
Z
Zeta
Voice
Posts: 16
Joined: Fri Apr 04, 2008 8:52 pm

Message on quit

Post by Zeta »

mhmm well.. i'm a newbie and :oops: .. the problem is..
how i can send a message in a chan when an user quits?
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

From Tcl-commands.doc:
SIGN (stackable)
bind sign <flags> <mask> <proc>
procname <nick> <user@host> <handle> <channel> <reason>

Description: triggered by a signoff, or possibly by someone who got
netsplit and never returned. The signoff message is the last
argument to the proc. Wildcards can be used in the mask, which is
matched against '#channel nick!user@host'.
Z
Zeta
Voice
Posts: 16
Joined: Fri Apr 04, 2008 8:52 pm

Post by Zeta »

tnxxxx ^^ i do this

Code: Select all

bind sign - * quitZ
proc quitZ { nick host handle chan reason } { 
global botnick
      if {$nick == $botnick} {return 0}
	if { [ lsearch -exact [ channel info $chan ] "+porc" ] == -1 } { return }
	putserv "PRIVMSG $chan : TEXTTTTT"
}
and it's works.. §:P

but.. i've a question and i dont open a new topic..
the question is...
how can i log all the message that they start with "demoniac1" or "demoniac2" ?

uhmm sorry for my bad english XD
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Check out the pub and pubm (or msg and msgm if you want to log private messages) binds in Tcl-commands.doc.
Post Reply