on *:text:!brain:#:{ msg # 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 } }