diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-11-01 21:57:46 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-11-01 21:57:46 +0100 |
commit | 00ae549266241289e730586e7d0266bd6fc63493 (patch) | |
tree | 734e072b8693399e31b1e74f2e587df940df595f | |
parent | 15b4d293e7012a405cf73c073139f9065508b4d2 (diff) |
Filter out server stuff by checking channel prefix.
-rwxr-xr-x | fot.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |