egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Message on quit

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
Zeta
Voice


Joined: 04 Apr 2008
Posts: 16

PostPosted: Fri Apr 04, 2008 8:57 pm    Post subject: Message on quit Reply with quote

mhmm well.. i'm a newbie and Embarassed .. the problem is..
how i can send a message in a chan when an user quits?
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Apr 05, 2008 3:31 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Zeta
Voice


Joined: 04 Apr 2008
Posts: 16

PostPosted: Sat Apr 05, 2008 7:40 pm    Post subject: Reply with quote

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.. §Razz

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
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Apr 05, 2008 8:37 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber