removed infinite loop

This commit is contained in:
Stephen McQuay 2013-02-23 17:05:43 -08:00
parent 0df5cce6af
commit 637a56da8c

View File

@ -24,6 +24,7 @@ class IDRTBot(irc.IRCClient):
print('got private message') print('got private message')
self.msg(username, "whisper back ...") self.msg(username, "whisper back ...")
if self.nickname in msg: if self.nickname in msg:
msg = msg.replace(self.nickname, '')
self.msg(channel, 'echo: {}'.format(msg)) self.msg(channel, 'echo: {}'.format(msg))