hi,
where can i define the pass command in eggdrop.
when i login at an irc server, there comes directly after the connect the "PASS <key>" bevore the "NICK ....." command comes.
so where can i define the pass?????
Thanks in advice
cmn
Code: Select all
set servers {
irc.this.com:6667:password
irc.that.com:6669:drowssap
}
Code: Select all
set currss -1
bind raw - 461 capt:461
proc capt:461 {from key arg} {
if {!$::currss == } { putlog "Not enough args used in PASS command" }
}
bind raw - 462 capt:462
proc capt:462 {from key arg} {
if {!$::currss} { putlog "Allready registered when sending PASS command" }
}
bind evnt - "%-server" capt:evnt
proc capt:evnt {t} {
switch -- $t {
{connect-server} { set $::currss 0 }
{init-server} { set $::currss 1 }
{disconnect-server} { set $::currss -1 }
}
}