I have created a small script for you. Try to use it according to your needs. All settings are made inside the alias "ci_set".

Code
alias -l ci_set {
  %ci_path_list = scripts\CheckIP\allow_list.txt
  %ci_shun_time = 1h
  %ci_shun_reason = You are probably using a Proxy or VPN...
  %ci_chans = #test,#kontrolli
}
---------------------------------------------------------------------
on *:TEXT:!proxy*:#:{
  ci_set | if ($istok(%ci_chans,$chan,44)) {
    if ($imfind($2)) msg $chan I cant add this IP:03 $2 - on SHUN because its in ALLOW list:12 $v1
    else { shun $+(*!*@,$2) %ci_shun_time %ci_shun_reason | msg $chan Proxy - I have added this IP in SHUN:04 $2 }
  }
}
alias -l imfind { var %n $gettok($1,1,46) | var %f %ci_path_list | var %l 1 | :next | if ($read(%f, wt, $+(%n,.*), %l)) { var %r $readn | var %l $calc(%r +1) | var %s $read(%f,%r) | if (%s iswm $1) return %s | if (%l < $lines(%f)) goto next } }



🌐 http://forum.epicnet.ru 📜 irc.epicnet.ru 6667 #Code (mIRC scripts, help, discuss, examples)