Tekil Mesaj gösterimi
Alt 11 Nisan 2017, 09:24   #2
Çevrimdışı
CoCoRiCo Doğrulanmış Üye
Kullanıcıların profil bilgileri misafirlere kapatılmıştır.
IF Ticaret Sayısı: (0)
IF Ticaret Yüzdesi:(%)
Cevap: CTCP Version help




elhale Nickli Üyeden Alıntı
Bu forumdaki linkleri ve resimleri görebilmek için en az 25 mesajınız olması gerekir.
Merhaba all,

I searched the forum before opening this thread and found 2 topics that somehow offer what im looking for.

[Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...]

Kod:   Kodu kopyalamak için üzerine çift tıklayın!
on *:ctcpreply:VERSION mIRC*:if $($+(%,nc.,$nick),2) { msg #kanal $1 mIRC Girişi Yaptı | 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) { msg #kanal $1 mIRC Girişi Yaptı| unset $+(%,nc.,$nick) } }

and

[Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...]

Kod:   Kodu kopyalamak için üzerine çift tıklayın!
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?

[14:12:34] <ConnectServ> SIGNON user: User53456 (JavaUser@185.89.217.233

"No Network Answer"

"and no message on test channel"

/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 } } }


__________________
2b|!2b=? ~ mircscripting.net
 
Alıntı ile Cevapla

IRCForumlari.NET Reklamlar
sohbet odaları sohbet bizimmekan