debiangr

Untitled

Apr 12th, 2023
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 3.73 KB | None | 0 0
  1. #wc_prot on
  2. #wc_prot end
  3.  
  4. alias -l wc_bantime { return 3600 } ; 3600 = 1 hour , 0 = never expire
  5. alias -l wc_bantype { return 4 } ; 4 = bantype, use /help $mask to change it
  6. alias -l wc_kickreason { return  14Proxy04/14VPN 14Lidhu me 04WEBSITE  } ; kick reason
  7. alias -l wc_chans { return #shoqeria,#trivia } ; channels , use comma to add more
  8. alias -l wc_exempt_nicks { return Timi westor Laciani Silenzio ShKoDraN_PuRo [A][AutoGraf] iOS } ; add nicks, use space (example: nick1 nick2) to add more nicks
  9.  
  10. ON !*:JOIN:$($wc_chans): {
  11.   if ($group(#wc_prot).status !== on) { return }
  12.   if ($istok($wc_exempt_nicks,$nick,32)) { return }
  13.   if (*irccloud.com* iswm $ial($nick).host) || (*mibbit.com* iswm $ial($nick).host) || (*Perputhen.Net* iswm $ial($nick).host) || (*Sherbimet.net* iswm $ial($nick).host) || (*Albnetwork.Org* iswm $ial($nick).host) { return }
  14.  
  15.   .timer[WC_ $+ $nick $+ _NOW] 1 2 wc_do_whois $nick
  16. }
  17.  
  18. raw *:*: {
  19.   if (!$hget(WC,$2)) { return }
  20.  
  21.   if ($numeric == 671) && (*using a Secure Connection* iswm $1-) { hinc -mu10 WC $2 1 }
  22.   if ($numeric == 320) && (*connecting via WEBIRC* iswm $1-) { hinc -mu10 WC $2 1 }
  23.   if ($numeric == 320) && (*connecting via IRCCloud* iswm $1-) { hinc -mu10 WC $2 1 }
  24.   if ($numeric == 313) && (*is an IRC Operator* iswm $1-) { hinc -mu10 WC $2 1 }
  25.   if ($numeric == 335) && (*is a Bot on* iswm $1-) { hinc -mu10 WC $2 1 }
  26.   if ($numeric == 313) && (*Team Member* iswm $1-) { hinc -mu10 WC $2 1 }  
  27.   if ($numeric == 313) && (*Services privileges* iswm $1-) { hinc -mu10 WC $2 1 }  
  28.   if ($numeric == 313) && (*Channel Operator* iswm $1-) { hinc -mu10 WC $2 1 }  
  29.   if ($numeric == 313) && (*Network Service* iswm $1-) { hinc -mu10 WC $2 1 }
  30.   if ($numeric == 320) && (*Lidhur Nga Albania* iswm $1-) { hinc -mu10 WC $2 1 }
  31.   if ($numeric == 320) && (*Lidhur Nga Italy* iswm $1-) { hinc -mu10 WC $2 1 }
  32.   if ($numeric == 320) && (*Lidhur Nga Greece* iswm $1-) { hinc -mu10 WC $2 1 }  
  33.   if ($numeric == 320) && (*Lidhur Nga Kosovo* iswm $1-) { hinc -mu10 WC $2 1 }
  34.   if ($numeric == 320) && (*Lidhur Nga North Macedonia* iswm $1-) { hinc -mu10 WC $2 1 }  
  35.   if ($numeric == 318) {
  36.     if ($hget(WC,$2) == 1) { wc_do_ban $2 }
  37.  
  38.     hdel WC $2
  39.   }
  40. }
  41.  
  42. alias wc_prot {
  43.   if (!$1) { echo 4 -at [WC]: Error, Use an option ON or OFF and try again! | return }
  44.   if (!$istok(on off,$1,32)) { echo 4 -at [WC]: Error, use ON or OFF options! | return }
  45.  
  46.   var %s = $group(#wc_prot).status
  47.  
  48.   if ($1 == ON) {
  49.     if (%s == on) { echo 4 -at [WC]: Error, Already enabled! }
  50.     else { .enable #wc_prot | echo -at [WC]: Allow SSL/TLS or WEBIRC users only protection enabled! - Channels: $wc_chans }
  51.   }
  52.  
  53.   if ($1 == OFF) {
  54.     if (%s == off) { echo 4 -at [WC]: Error, Already disabled! }
  55.     else { .disable #wc_prot | echo -at [WC]: Allow SSL/TLS or WEBIRC users only protection disabled! }
  56.   }
  57.  
  58. }
  59.  
  60. alias wc_do_whois {
  61.   ; $1 = nick
  62.  
  63.   if (!$1) { return }
  64.   if ($wc_check_is_not_regular($nick)) { echo -a lol | return }
  65.  
  66.   hadd -mu10 WC $1 1
  67.  
  68.   whois $1 $1
  69. }
  70.  
  71. alias -l wc_do_ban {
  72.   ; $1 = nick
  73.  
  74.   if (!$1) { return }
  75.  
  76.   var %h = $ial($1).host
  77.   var %t = $numtok($wc_chans,44)
  78.   var %i = 1
  79.  
  80.   while (%i <= %t) {
  81.     var %c = $gettok($wc_chans,%i,44)
  82.  
  83.     if ($me ison %c) && ($me isop %c) && ($1 ison %c) {
  84.       if (*.IP iswm %h) { ban $+(-u,$wc_bantime) %c *!*@*. $+ $gettok(%h,3-,46) | kick %c $1 $wc_kickreason }
  85.       else { ban $+(-ku,$wc_bantime) %c $1 $wc_bantype $wc_kickreason }
  86.     }
  87.  
  88.     inc %i
  89.   }
  90. }
  91.  
  92. alias -l wc_check_is_not_regular {
  93.   ; $1 = nick
  94.  
  95.   var %t = $numtok($wc_chans,44)
  96.   var %i = 1
  97.  
  98.   while (%i <= %t) {
  99.     var %c = $gettok($wc_chans,%i,44)
  100.  
  101.     if ($me ison %c) && ($1 ison %c) && ($1 isreg %c) { return 1 }
  102.  
  103.     inc %i
  104.   }
  105.  
  106.   return 0
  107. }
  108.  
Add Comment
Please, Sign In to add comment