r00t-err0r

msame-msmsg

Jul 10th, 2012
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.63 KB | None | 0 0
  1. alias msmsg {
  2.   ; syntax: /msmsg message
  3.   ; send a message to all channels on all servers
  4.   var %i = 0
  5.   while (%i  < $scon(0)) {
  6.     inc %i
  7.     scid $scon(%i)
  8.     var %i. = 0
  9.     while (%i. < $chan(0)) {
  10.       inc %i.
  11.       if ($server && $chan(0) > 0) {
  12.         msg $chan(%i.) $1-
  13.       }
  14.     }
  15.   }
  16. }
  17.  
  18. alias msame {
  19.   ; syntax: /msame message
  20.   ; send a /me to all channels on all servers
  21.   var %i = 0
  22.   while (%i  < $scon(0)) {
  23.     inc %i
  24.     scid $scon(%i)
  25.     var %i. = 0
  26.     while (%i. < $chan(0)) {
  27.       inc %i.
  28.       if ($server && $chan(0) > 0) {
  29.         describe $chan(%i.) $1-
  30.       }
  31.     }
  32.   }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment