Advertisement
Wikked

Total lines from all .ini files

Oct 30th, 2014
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.41 KB | None | 0 0
  1. on *:text:!brain:#:{ .msg $chan [ $+ $nick $+ ]: my brain consist of $tot_size lines of code }
  2. alias -l total_lines { noop $findfile($mircdirscripts,*.ini,0,calc_file $1-) }
  3. alias -l calc_file {
  4.   var %l = $lines($1-)
  5.   if (%l) { set -e %tot_lines $calc(%tot_lines + %l) }
  6. }
  7. alias -l tot_size {
  8.   total_lines
  9.   var %tot = %tot_lines
  10.   unset %tot_lines
  11.   if (%tot) { return %tot }
  12.   else { return 0 }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement