Advertisement
illpastethat

word counter zzbooze

Apr 5th, 2013
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.63 KB | None | 0 0
  1. on *:text:.stats:#:{
  2.   .msg $chan $chr(91) Word Count: $readini(wlcount.ini,$nick,words) / Letter Count: $&
  3. $readini(wlcount.ini,$nick,letters) $chr(93) .
  4. }
  5. on *:text:*:#:{
  6. if ($1 = .stats) {
  7. halt
  8. }
  9. if $readini(wlcount.ini,$nick,words) = $null && $readini(wlcount.ini,$nick,letters) = $null {
  10. writeini -n wlcount.ini $nick words 0
  11. writeini -n wlcount.ini $nick letters 0
  12. halt
  13. }
  14. else {
  15. var %wscore $calc($0 + $readini(wlcount.ini,$nick,words))
  16. writeini -n wlcount.ini $nick words %wscore
  17. var %lscore $calc($len($remove($1-,$chr(32)))) + $readini(wlcount.ini,$nick,letters))
  18. writeini -n wlcount.ini $nick letters %lscore
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement