Wikked icon

Total lines from all .ini files

Wikked | PRO | 10/31/14 01:55:31 AM UTC | 0 ⭐ | 351 👁️ | Never ⏰ | []
mIRC |

410 B

|

None

|

0 👍

/

0 👎

on *:text:!brain:#:{ .msg $chan [ $+ $nick $+ ]: my brain consist of $tot_size lines of code } 
alias -l total_lines { noop $findfile($mircdirscripts,*.ini,0,calc_file $1-) }
alias -l calc_file {
  var %l = $lines($1-)
  if (%l) { set -e %tot_lines $calc(%tot_lines + %l) }
}
alias -l tot_size {
  total_lines
  var %tot = %tot_lines
  unset %tot_lines
  if (%tot) { return %tot }
  else { return 0 }
}

Comments