Updated the translate module, the web interface having changed.

This commit is contained in:
Sean B. Palmer
2008-05-15 10:44:48 +01:00
parent 986953131d
commit d7f8faabe8
3 changed files with 14 additions and 9 deletions

9
irc.py
View File

@@ -43,9 +43,12 @@ class Bot(asynchat.async_chat):
def __write(self, args, text=None):
# print '%r %r %r' % (self, args, text)
if text is not None:
self.push(' '.join(args) + ' :' + text + '\r\n')
else: self.push(' '.join(args) + '\r\n')
try:
if text is not None:
self.push(' '.join(args) + ' :' + text + '\r\n')
else: self.push(' '.join(args) + '\r\n')
except IndexError:
pass
def write(self, args, text=None):
# This is a safe version of __write