Advertisement
nanyobis

auto-ban for too many characters and echo text in @window

Feb 16th, 2014
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.86 KB | None | 0 0
  1. on *:text:*:#ExampleChannel1,#ExampleChannel2:{
  2.   addwininfo $nick $+ : $1-
  3.   var %CharLimit 192
  4.   if ($len($1-) > %CharLimit) { ban -ku2 $chan $nick Please do not spam. }
  5.  
  6.   ;above is every channel below is just one specific channel.
  7.   ;Just move the ; to the one you want to ignore
  8.  
  9.   ;if ($len($1-) > %CharLimit) && ($chan == #ExampleChannel1) { ban -ku2 $chan $nick Please do not enter too many characters in 1 post. }
  10.  
  11. }
  12. on *:action:*:#ExampleChannel1,#ExampleChannel2:{ addwininfo * $nick $1- }
  13. on *:input:#ExampleChannel1,#ExampleChannel2: {
  14.   if (($left($1,1) != /) || ($1 == /me)) {
  15.     if ($1 == /me) { addwininfo  * $+($me) $2- }
  16.     else { addwininfo  $me $+ : $1- }
  17.   }
  18. }
  19. alias addwininfo {
  20.   var %w = @ChannelText
  21.   if (!$window(%w)) { window -Bdo +d %w 566 472 816 150 | window -Bdo +d %w 566 472 816 150 }
  22.   aline -p %w $+($chr(2),$1) $2-
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement