/whois ile nick komutu ile IP sorgulama yapmak isterseniz.
Kod: Kodu kopyalamak için üzerine çift tıklayın!
on *:TEXT:!nickip *:#: {
var %nick = $2
if (%nick == $null) {
msg $chan Lütfen bir nick girin! Örnek: !nickip nick
return
}
if ($nick(%nick) == $null) {
msg $chan %nick şu anda çevrimiçi değil!
return
}
set %ipchan $chan
set %ipnick %nick
msg $chan %nick için whois sorgusu yapılıyor...
.whois %nick
}
on *:RAW:*: {
if ($numeric == 311 || $numeric == 378) {
; 311: Standart whois bilgisi, 378: IP/hostname bilgisi (sunucuya bağlı)
var %raw = $rawmsg
if ($regex(%raw, /(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/)) {
set %ipaddr $regml(1)
msg %ipchan %ipnick için IP: %ipaddr | Konum sorgulanıyor...
sockopen iplookup api.ip-api.com 80
}
}
}