| View previous topic :: View next topic |
| Author |
Message |
Zeta Voice
Joined: 04 Apr 2008 Posts: 16
|
Posted: Fri Apr 04, 2008 8:57 pm Post subject: Message on quit |
|
|
mhmm well.. i'm a newbie and .. the problem is..
how i can send a message in a chan when an user quits? |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sat Apr 05, 2008 3:31 pm Post subject: |
|
|
From Tcl-commands.doc:
| Quote: | 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'. |
_________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
Zeta Voice
Joined: 04 Apr 2008 Posts: 16
|
Posted: Sat Apr 05, 2008 7:40 pm Post subject: |
|
|
tnxxxx ^^ i do this
| Code: |
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.. §
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 |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sat Apr 05, 2008 8:37 pm Post subject: |
|
|
Check out the pub and pubm (or msg and msgm if you want to log private messages) binds in Tcl-commands.doc. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
|