Advertisement
Seb

/stats (Remotes stats)

Seb
Dec 21st, 2011
527
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.30 KB | None | 0 0
  1. #To install this alias open your remotes with ALT+R,
  2. #Click FILE, then NEW, then copy paste this in the new page.
  3. #Click File again, click Save As..., then put: "stats.mrc" (WITH THE "'s)
  4. #Click OK and you are done.
  5. #Keep in mind this could be annoying if you say it in some channels.
  6. #
  7. # To see the infos to yourself only, type: /stats
  8. # To say the infos in the channel/private type /stats -s
  9. # Sebastien (#mircscripting@undernet) Seb@ircpros.net
  10.  
  11. alias stats {
  12.   var %dbf $iif($1 == -s,say,echo -at)
  13.   var %aliases.total, %aliases.lines, %aliases.size
  14.   var %remote.total, %remote.lines, %remote.size
  15.   var %x = 1, %y
  16.   %aliases.total = $alias(0)
  17.   while (%x <= %aliases.total) {
  18.     %y = $alias(%x)
  19.     inc %aliases.lines $lines(%y)
  20.     inc %aliases.size $file(%y).size
  21.     inc %x 1
  22.   }
  23.   %x = 1
  24.   %remote.total = $script(0)
  25.   while (%x <= %remote.total) {
  26.     %y = $script(%x)
  27.     inc %remote.lines $lines(%y)
  28.     inc %remote.size $file(%y).size
  29.     inc %x 1
  30.   }
  31.   %dbf [7Aliases(3Loaded)] %aliases.total files, %aliases.lines lines, $bytes(%aliases.size,k) $+ kb
  32.   %dbf [2Remote(3Loaded)] %remote.total files, %remote.lines lines, $bytes(%remote.size,k) $+ kb
  33.   %dbf [4Total] $findfile($scriptdir, *.ini;*.mrc, 0, inc -u %x $lines($1)) scripts, total of $bytes(%x, db) lines.
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement