Still not getting the results I want...
Ok, so here is how I am understanding things.
on server notice (@snotice) when users connect i get these notices:
Kod: Kodu kopyalamak için üzerine çift tıklayın!
*** Notice -- Client connecting on port 6667: Nick (Mibbit@79.106.40.73) [clients]
*** Notice -- Client connecting at hub1.network.net: User_836 (
Bu forumdaki linkleri ve resimleri görebilmek için en az 25 mesajınız olması gerekir.
.kundencontroller.de)
and if I use these commands
for "on port" ctcp $9 VERSION
and
for "at" ctcp $8 VERSION
It works and I get the version response back
but when I edit your code for the debug raw data
Kod: Kodu kopyalamak için üzerine çift tıklayın!
<- :hub.network.net NOTICE starkeffect :*** Notice -- Client connecting on port 6667: Nick (Mibbit@79.106.40.73) [clients]
<- :hub1.network.net NOTICE starkeffect :*** Notice -- Client connecting at hub1.network.net: User_836 (
Bu forumdaki linkleri ve resimleri görebilmek için en az 25 mesajınız olması gerekir.
.kundencontroller.de)
the command should change to
for "on port" ctcp $13 VERSION
and
for "at" ctcp $12 VERSION
right?
but when I edit your code to the new identifiers I don't see a version notice on the debug raw data... (i have done the /umode2 -T) it is as if the version command is not issued. The hash table ver is created but it is empty...
so for on port the code becomes
Kod: Kodu kopyalamak için üzerine çift tıklayın!
alias getd {
var %ch #controlChannel
var %min 10
if (!$1) debug -i d getd
if $1 {
tokenize 32 $1-
$iif(!$window(@debug),window -fn @debug,echo @debug $1-)
if (*<-:*NOTICE*:Notice*Client*connecting*on*port*:* iswm $1-) .ctcp $13 VERSION
if *352* iswm $1- {
.hadd -mu $+ %min ver $13
$+(.timerver_,$13) 1 %min gzline $13 Version Abuse! $(|) msg #test4 %ch $13 Did not respond to version request
}
if *:*!*@*NOTICE* $+ $hget(ver,$13) $+ :*VERSION** iswm $1- {
echo %ch Version Reply : $13 to $remove($6-,$chr(1))
hdel ver $13 | $+(.timerver_,$13) off
if $regex($6-,/(mibbit|lightirc)/) { gzline $13 hey! your client is not allowed on this server | msg #test4 %ch $13 tried to connect with a prohibited version }
}
}
}
and for hub becomes:
Kod: Kodu kopyalamak için üzerine çift tıklayın!
alias getd {
var %ch #controlChannel
var %min 10
if (!$1) debug -i d getd
if $1 {
tokenize 32 $1-
$iif(!$window(@debug),window -fn @debug,echo @debug $1-)
if (*<-:*NOTICE*:Notice*Client*connecting*at*:* iswm $1-) .ctcp $12 VERSION
if *352* iswm $1- {
.hadd -mu $+ %min ver $12
$+(.timerver_,$12) 1 %min gzline $12 Version Abuse! $(|) msg #test4 %ch $12 Did not respond to version request
}
if *:*!*@*NOTICE* $+ $hget(ver,$12) $+ :*VERSION** iswm $1- {
echo %ch Version Reply : $12 to $remove($6-,$chr(1))
hdel ver $12 | $+(.timerver_,$12) off
if $regex($6-,/(mibbit|lightirc)/) { gzline $12 hey! your client is not allowed on this server | msg #test4 %ch $12 tried to connect with a prohibited version }
}
}
}
I am sorry, I know I am always a headache... lol