richard wrote:Code: Select all
set authnick "myauth"
set authkey "myauthpw"
bind dcc m qauth qauth
bind raw - 001 qauth
proc qauth {nick host hand args} {
global authnick authkey
putserv "PRIVMSG Q@CServe.quakenet.org :auth $authnick $authkey"
}
What means the bind dcc m qauth qauth (for what)
thank you
There are 5 items in that sentence:
bind : command creating a binding
dcc : type of binding is partyline (DCC)
m : flag of the user that will trigger the binding (m = master)
quath : the command the user must give to trigger the binding. Note that commands on the partyline are preceeded by a dot (.)
qauth : the name of the procedure that is called if the binding is triggered.
So, it means a binding to a command given on the partyline (DCC).
If a master (flag m) types ".qauth" on the partyline, the procedure named "qauth" is called.
You can also check docs/tcl-commands.doc for further info on bindings.
(2) DCC
bind dcc <flags> <command> <proc>
procname <handle> <idx> <text>
Description: used for partyline commands; the command is the first
word and everything else becomes the text argument. The idx is
valid until the user disconnects. After that, it may be reused,
so be careful about storing an idx for long periods of time.
Module: core
edit: heh didn't notice mortician already answered.