removed infinite loop

This commit is contained in:
Stephen McQuay 2013-02-23 17:05:43 -08:00
parent 0df5cce6af
commit 637a56da8c
1 changed files with 1 additions and 0 deletions

View File

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