From 00ae549266241289e730586e7d0266bd6fc63493 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Mon, 1 Nov 2010 21:57:46 +0100 Subject: Filter out server stuff by checking channel prefix. --- fot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fot.py b/fot.py index 2bb51af..9b0d548 100755 --- a/fot.py +++ b/fot.py @@ -122,7 +122,7 @@ class Bot(irc.IRCClient): def privmsg(self, nick, channel, msg): priv = channel == self.nickname # filter out server stuff - if not priv and not '!' in nick: + if not priv and not channel[:1] in irc.CHANNEL_PREFIXES: return for mod in self.msg_callbacks: -- cgit v1.2.3