summaryrefslogtreecommitdiff
path: root/ircbot.py
diff options
context:
space:
mode:
Diffstat (limited to 'ircbot.py')
-rwxr-xr-xircbot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ircbot.py b/ircbot.py
index ac329eb..7477691 100755
--- a/ircbot.py
+++ b/ircbot.py
@@ -107,7 +107,7 @@ class IRCClient(SimpleIRCClient):
else:
# feed phrase to bot
prob, = pred_f(self.str2data(s0+'\n'))
- if self.nick in msg:
+ if any(x in msg.lower() for x in [self.nick, 'frigal']):
self.pred_until(pred_f, prob, '\t')
prob, = pred_f(self.str2data(nick+': '))
rep = nick + ': ' + self.pred_until(pred_f, prob)