removed infinite loop
This commit is contained in:
parent
0df5cce6af
commit
637a56da8c
1
tbot.py
1
tbot.py
@ -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))
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user