Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement