Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. alias masshl {
  2. ;set here the maximum number of characters that the servers accept per line (200 is a safe value, should be accepted everywhere)
  3. var %max = 200
  4. if ($me ison $1) var %c $1
  5. elseif ($me ison $active) var %c $active
  6. else { echo -at 15(4+15) Mass Highlight: highlight all people on a channel. Format:  14/mass-highlight [#channel]  15(if no channel specified, current used) | halt }
  7. if (!$chan(%c).ial) { echo -at 15(4+15) IAL is not updated for %c $+ . Updating it now... retry in a few seconds. | who %c | halt }
  8. var %a = $ialchan(*,%c,0)
  9. var %pre = [Highlight'd]
  10. var %i = 1,%z = 1,%p1 = %pre
  11. while (%z <= %a) {
  12. var %n = $nick(%c,%z)
  13. if ((%n != Q) && (%n != L) && (%n != S) && (%n != F) && (%n != H) && (%n != T) && (%n != X) && (%n != ChanServ)) {
  14. if ($len( %p [ $+ [ %i ] ] ) < %max) {
  15. var %p [ $+ [ %i ] ] %p [ $+ [ %i ] ] $+ $chr(32) $+ %n
  16. }
  17. else {
  18. inc %i | var %p [ $+ [ %i ] ] %pre $+ $chr(32) $+ %n
  19. }
  20. }
  21. inc %z
  22. }
  23. var %j = 1,%t = 1
  24. while (%j <= %i) {
  25. .timer(Mass-Highlight- $+ %t $+ - $+ %c $+ ) 1 %t $iif($isalias(msgchan),msgchan,msg) %c %p [ $+ [ %j ] ]
  26. inc %j | inc %t
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement