Advertisement
debiangr

Untitled

Apr 12th, 2023
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. alias -l wc_do_ban {
  2. ; $1 = nick
  3.  
  4. if (!$1) { return }
  5.  
  6. var %h = $ial($1).host
  7. var %t = $numtok($wc_chans,44)
  8. var %i = 1
  9.  
  10. while (%i <= %t) {
  11. var %c = $gettok($wc_chans,%i,44)
  12.  
  13. if ($me ison %c) && ($me isop %c) && ($1 ison %c) {
  14. if (*.IP iswm %h) { ban $+(-u,$wc_bantime) %c *!*@*. $+ $gettok(%h,3-,46) | kick %c $1 $wc_kickreason }
  15. else { ban $+(-ku,$wc_bantime) %c $1 $wc_bantype $wc_kickreason }
  16. }
  17.  
  18. inc %i
  19. }
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement