summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-11-01 21:57:46 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2010-11-01 21:57:46 +0100
commit00ae549266241289e730586e7d0266bd6fc63493 (patch)
tree734e072b8693399e31b1e74f2e587df940df595f
parent15b4d293e7012a405cf73c073139f9065508b4d2 (diff)
Filter out server stuff by checking channel prefix.
-rwxr-xr-xfot.py2
1 files changed, 1 insertions, 1 deletions
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: