mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-29 22:22:33 +01:00
c803e5e9d8
consistent between developers. Jeremy should be adding the equivalent settings for emacs soon.
20 lines
396 B
Python
20 lines
396 B
Python
#!/usr/bin/env python
|
|
|
|
import sys
|
|
|
|
import ircmsgs
|
|
import ircutils
|
|
|
|
sys.path.append('..')
|
|
|
|
if __name__ == '__main__':
|
|
total = 0
|
|
lines = 0
|
|
for line in sys.stdin:
|
|
msg = ircmsgs.IrcMsg(line)
|
|
if ircutils.isUserHostmask(msg.prefix):
|
|
total += len(msg.prefix)
|
|
lines += 1
|
|
print total / lines
|
|
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|