Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugin.py')
-rw-r--r--plugin.py25
1 files changed, 15 insertions, 10 deletions
diff --git a/plugin.py b/plugin.py
index 0d0d2d5..ec97be7 100644
--- a/plugin.py
+++ b/plugin.py
@@ -123,16 +123,21 @@ class MeetBot(callbacks.Plugin):
"""
# Gotta catch my own messages *somehow* :)
# Let's try this little trick...
- if msg.command in ('PRIVMSG'):
- # Note that we have to get our nick and network parameters
- # in a slightly different way here, compared to doPrivmsg.
- nick = irc.nick
- channel = msg.args[0]
- payload = msg.args[1]
- Mkey = (channel,irc.network)
- M = meeting_cache.get(Mkey, None)
- if M is not None:
- M.addrawline(nick, payload)
+ try:
+ if msg.command in ('PRIVMSG'):
+ # Note that we have to get our nick and network parameters
+ # in a slightly different way here, compared to doPrivmsg.
+ nick = irc.nick
+ channel = msg.args[0]
+ payload = msg.args[1]
+ Mkey = (channel,irc.network)
+ M = meeting_cache.get(Mkey, None)
+ if M is not None:
+ M.addrawline(nick, payload)
+ except:
+ import traceback
+ print traceback.print_exc()
+ print "(above exception in outFilter, ignoring)"
return msg
# These are admin commands, for use by the bot owner when there