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.

ONJOIN

Old posts that have not been replied to for several years.
Locked
B
BellorAnima

ONJOIN

Post by BellorAnima »

Is there a TCL equivalent to the mIRC "ONJOIN" command that will pass information to the server as soon as a connection is established?
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Seems as if you are not clear yourself, what you are trying to say, or you want todo.

- ON JOIN will trigger when someone or the bot joins a channel.
- ON CONNECT will trigger when a connection to the server is established.

If you want to use the mIRC trigger of 'ON JOIN' in TCL it will be binded to 'join' like:

Code: Select all

bind join - * your_procedure_name
JOIN (stackable)

bind join <flags> <mask> <proc>
procname <nick> <user@host> <handle> <channel>

Description: triggered by someone joining the channel. The mask in the bind is matched against "#channel nick!user@host" and can contain wildcards.

If you want to use the mIRC trigger of 'ON CONNECT' in TCL it will be binded to the EVENT 'initialize server' (init-server) like:

Code: Select all

bind evnt - init-server your_procedure_name
EVNT (stackable)

bind evnt <flags> <type> <proc>
proc-name <type>

Description: Description: triggered whenever one of these events happen; flags are ignored; valid events are:

sighup called on a kill -HUP <pid>
sigterm called on a kill -TERM <pid>
sigill called on a kill -ILL <pid>
sigquit called on a kill -QUIT <pid>
save called when the userfile is saved
rehash called just after a rehash
prerehash called just before a rehash
prerestart called just before a restart

logfile called when the logs are switched daily
loaded called when the bot is done loading
* userfile-loaded called after userfile has been loaded

connect-server called just before we connect to an IRC server
init-server called when we actually get on our IRC server
disconnect-server called when we disconnect from our IRC server
There are many binds availiable for eggdrops, as mIRC has.
For a full list of the binds availiable in eggdrops you can see the tcl-commands.doc (in the eggdrop source package) for BIND TYPES, or alternatively try this link:

http://tcl.b0rk.de/b0rked/eggdrop1.6.16 ... /bind.html
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Locked