Advertisement
nanyobis

Untitled

Feb 16th, 2014
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 2.19 KB | None | 0 0
  1. ;what part of the script does
  2. ;bans users for typing too many characters on text
  3. ;bans users for saying certain words on text
  4. on @*:text:*:#Chan1,#A:{
  5.   addwininfo $nick $+ : $1-
  6.   var %CharLimit 192
  7.   if ($len($1-) > %CharLimit) { ban -ku1 $chan $nick Please do not spam. }
  8.  
  9.   ;above is every channel below is just one specific channel.
  10.   ;Just move the ; to the one you want to ignore
  11.  
  12.   ;if ($len($1-) > %CharLimit) && ($chan == #Chan1) { ban -ku1 $chan $nick Please do not enter too many characters in 1 post. }}
  13.  
  14.   ; Spam Kick/Ban v1.0.1
  15.   ; Put in remotes (alt+r) and change #chan
  16.   ; Bad sites list in %bad = *example.com* *example.net*on @*:text:*:#Chan1,#A:{
  17.   var %a = 1, %bad = *example.com* *example.net* *example.org* *example.edu*, %c
  18.   while  ($gettok(%bad,%a,32)) {
  19.     %c = $v1
  20.     if ($wildtok($1-,%c,1,32)) { ban -ku1 # $nick 3 Banned for spamming | break }
  21.     inc %a
  22.   }
  23. }
  24. ;what part of the script does
  25. ;bans users for typing too many characters on action
  26. ;bans users for saying certain words on action
  27. on *:action:*:#Chan1,#A:{
  28.   addwininfo * $nick $1-
  29.   var %CharLimit 192
  30.   if ($len($1-) > %CharLimit) { ban -ku1 $chan $nick Please do not spam. }
  31.  
  32.   ;above is every channel below is just one specific channel.
  33.   ;Just move the ; to the one you want to ignore
  34.  
  35.   ;if ($len($1-) > %CharLimit) && ($chan == #Chan1) { ban -ku1 $chan $nick Please do not enter too many characters in 1 post. }}
  36.  
  37.   ; Spam Kick/Ban v1.0.1
  38.   ; Put in remotes (alt+r) and change #chan
  39.   ; Bad sites list in %bad = *blah* *blah2*on @*:text:*:#Chan1,#A:{
  40.   var %a = 1, %bad = *example.com* *example.net* *example.org* *example.edu*, %c
  41.   while  ($gettok(%bad,%a,32)) {
  42.     %c = $v1
  43.     if ($wildtok($1-,%c,1,32)) { ban -ku1 # $nick 3 Banned for spamming | break }
  44.     inc %a
  45.   }
  46. }
  47. ;what part of the script does
  48. ;echos certain channels in @ChannelText
  49. on *:input:#Chan1,#A: {
  50.   if (($left($1,1) != /) || ($1 == /me)) {
  51.     if ($1 == /me) { addwininfo  * $+($me) $2- }
  52.     else { addwininfo  $me $+ : $1- }
  53.   }
  54. }
  55. alias addwininfo {
  56.   var %w = @ChannelText
  57.   if (!$window(%w)) { window -Bdo +d %w 566 472 816 150 | window -Bdo +d %w 566 472 816 150 }
  58.   aline -p %w $+($chr(2),$1) $2-
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement