Advertisement
Guest User

Untitled

a guest
May 27th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 2.17 KB | None | 0 0
  1. on $*:TEXT:/^[!.]masspm ./Si:*: {
  2.   if ($chan) { var %chan = $v1 }
  3.   else {
  4.     var %chan = $2
  5.     tokenize 32 $2-
  6.   }
  7.   if (($nick isop %chan) || ($nick ishop %chan)) {
  8.     if ($2 == $null) { notice $nick You need to specify a message to send. }
  9.     else {
  10.       var %i = 1, %n = 0, %l = %except. [ $+ [ %chan ] ]
  11.       while ($nick(%chan,%i,a,r) !== $null) {
  12.         var %c = $v1
  13.         if (!$istok(%l,%c,32)) {
  14.           var %t = $+(%t,$chr(44),%c)
  15.           inc %n
  16.           if (%n == 20) {
  17.             msg $right(%t,-1) $2-
  18.             var %n, %t
  19.           }
  20.         }
  21.         inc %i
  22.       }
  23.       if (%n) { msg $right(%t,-1) $2- }
  24.     }
  25.   }
  26. }
  27. on $*:TEXT:/^[!.]addexception( .|$)/Si:*: {
  28.   if ($chan) { var %chan = $v1 }
  29.   else {
  30.     var %chan = $2
  31.     tokenize 32 $2-
  32.   }
  33.   if (($nick isop %chan) || ($nick ishop %chan)) {
  34.     var %l = %except. [ $+ [ %chan ] ]
  35.     if ($2 == $null) { notice $nick The exception list for %chan $iif(%l == $null,is empty.,is: %l) }
  36.     elseif ($istok(%l,$2,32)) { notice $nick The nick $2 is already on %chan $+ 's exception list. }
  37.     else {
  38.       set %except. [ $+ [ %chan ] ] %l $2
  39.       notice $nick The nick $2 has been added to %chan $+ 's exception list.
  40.     }
  41.   }
  42. }
  43. on $*:TEXT:/^[!.]delexception( .|$)/Si:*: {
  44.   if ($chan) { var %chan = $v1 }
  45.   else {
  46.     var %chan = $2
  47.     tokenize 32 $2-
  48.   }
  49.   if (($nick isop %chan) || ($nick ishop %chan)) {
  50.     var %l = %except. [ $+ [ %chan ] ]
  51.     if ($2 == $null) { notice $nick The exception list for %chan $iif(%l == $null,is empty.,is: %l) }
  52.     elseif (!$istok(%l,$2,32)) { notice $nick The nick $2 is not on %chan $+ 's exception list. }
  53.     else {
  54.       set %except. [ $+ [ %chan ] ] $remtok(%l,$2,1,32)
  55.       notice $nick The nick $2 has been removed from %chan $+ 's exception list.
  56.     }
  57.   }
  58. }
  59. on $*:TEXT:/^[!.]delexceptlist( .|$)/Si:*: {
  60.   var %chan = $iif($chan,$v1,$2)
  61.   if (($nick isop %chan) || ($nick ishop %chan)) {
  62.     if (%except. [ $+ [ %chan ] ] == $null) { notice $nick The exception list for %chan is already empty. }
  63.     else {
  64.       unset %except. [ $+ [ $chan ] ]
  65.       notice $nick The exception list for %chan has been cleared.
  66.     }
  67.   }
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement