Advertisement
westor

On Join Check UserIP And Ban Via ULIST for Debian v1.0

Nov 12th, 2019
548
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.06 KB | None | 1 0
  1. ON !*:JOIN:#msl: {
  2.   var %host = $address($nick,2)
  3.   var %domain = $address($nick,4)
  4.   var %fullhost = $address($nick,5)
  5.  
  6.   var %ident = $remove($gettok($gettok(%fullhost,2,33),1,64),~)
  7.  
  8.   if (!$ulist(%domain,host,0)) { mode $chan +b %domain }
  9.  
  10.   if (%ident isin $nick) && (!$ulist(%host,host,0)) {
  11.     var %ok = 1
  12.     mode $chan +b *! $+ %ident $+ @*
  13.     kick $chan $nick 4N41dalohen 4P41roxy 4C41loneX
  14.   }
  15.  
  16.   if (%ok) { return }
  17.  
  18.   .enable #raw_340_on_join
  19.   set -eu10 %raw_340_chan $chan
  20.   .userip $nick
  21. }
  22.  
  23. #raw_340_on_join off
  24. raw 340:*: {
  25.   haltdef
  26.  
  27.   if (!$2) || (!%raw_340_chan) || ($me !ison %raw_340_chan) || ($me isreg %raw_340_chan) { .disable #raw_340_on_join | return }
  28.  
  29.   var %nick = $gettok($2,1,61)
  30.   var %ident = $gettok($gettok($2,2,43),1,64)
  31.   var %host = $gettok($gettok($2,2,43),2,64)
  32.  
  33.   if (!$ulist(%host,host,0)) {
  34.     mode %raw_340_chan +b %host
  35.     kick %raw_340_chan %nick 2N41dalohen 2P41roxy 2C41loneX
  36.   }
  37.  
  38.   unset %raw_340_chan
  39.   .disable #raw_340_on_join
  40. }
  41. #raw_340_on_join end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement