🔔 Çevrimdışı bildirim almak ister misiniz?
Bir konuya etiketlendiğinizde, özel mesaj aldığınızda, bir mesajınız alıntılandığında forumda olmasanız bile anlık bildirim almak için lütfen izni verin.
on *:ctcpreply:VERSION mIRC*:if $($+(%,nc.,$nick),2) { zline $nick <zline sebebi> | unset $+(%,nc.,$nick) }
on *:snotice:*Client connecting*:{
var %id ident1 ident2
if $istok(%id,$remove($gettok($gettok($10,1,40),1,64) ,~),32) {
ctcp $9 VERSION | set $+(%,nc.,$9) 1 | timer 1 60 vcontrol $9
}
}
alias vcontrol { if $($+(%,nc.,$1),2) { zline $1 <zline sebebi> | unset $+(%,nc.,$nick) } }
The code on these topics works but i wanted it to do smth more. I wanted to add to the code when a user with a specific ident connects and doesn't give an answer to the ctcp $nick version command.
So, if anyone can help, how can we identify the users connecting to the server that don't give an answer to the version request?
for example the code works for:
[12:03:59] <ConnectServ> SIGNON user: User68314 (JavaUser@p50811B44.dip0.t-ipconnect.de
[12:03:59] <Network> Got Version Reply from User68314: mIRC v6.12 Khaled Mardam-Bey
msg on test channel:
[12:04:02] [ ALERT ] User68314 using bad ident with mIRC Entered.
But how to do it for when no answer to Version request?
/debug @d
See the [ ALERT ] message. And copy it here.
And personal solution.
start: /getd
blue section is monitor channel.
red sction is how long he will respond if he does not respond
pink section is ban type.
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-
if (*<-:*NOTICE*:Notice*Client*connecting*on*port*:* iswm $1-) .ctcp $4 VERSION
if *PRIVMSG*:VERSION* iswm $1- {
.hadd -mu $+ %min ver $4
$+(.timerver_,$4) 1 %min gzline $4 version SUX! $(|) echo %ch $4 Did not respond to the version
}
if *:*!*@*NOTICE* $+ $hget(ver,$4) $+ :VERSION** iswm $1- {
echo %ch Version Reply : $4 to $remove($6-,$chr(1))
hdel ver $4 | $+(.timerver_,$4) off
}
}
}