Debug: Fix @progstats. Closes GH-491.

This commit is contained in:
Valentin Lorentz 2013-08-03 15:24:06 +02:00
parent 4fcf4d426d
commit ce14329731

View File

@ -184,6 +184,7 @@ class Debug(callbacks.Privmsg):
irc.reply(format('%L', map(str, L))) irc.reply(format('%L', map(str, L)))
collect = wrap(collect, [additional('positiveInt', 1)]) collect = wrap(collect, [additional('positiveInt', 1)])
_progstats_endline_remover = utils.str.MultipleRemover('\r\n')
def progstats(self, irc, msg, args): def progstats(self, irc, msg, args):
"""takes no arguments """takes no arguments
@ -195,7 +196,7 @@ class Debug(callbacks.Privmsg):
'Running on Python %s.' % \ 'Running on Python %s.' % \
(os.getpid(), pw[0], pw[3], (os.getpid(), pw[0], pw[3],
os.getcwd(), ' '.join(sys.argv), os.getcwd(), ' '.join(sys.argv),
sys.version.translate(string.ascii, '\r\n')) self._progstats_endline_remover(sys.version))
irc.reply(response) irc.reply(response)
progstats = wrap(progstats) progstats = wrap(progstats)