changeset 2477:76f87ae87759

Initialize _ later, as NotificationCommand doesn't have `jid` attr
author Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
date Fri, 20 Jul 2007 17:44:02 +0200
parents d08d65a19718
children 0242ded135e9 b0185066e802
files jabberbot/xmppbot.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/jabberbot/xmppbot.py	Fri Jul 20 13:24:36 2007 +0200
+++ b/jabberbot/xmppbot.py	Fri Jul 20 17:44:02 2007 +0200
@@ -204,8 +204,6 @@
         @param ignore_dnd: if command results in user interaction, should DnD be ignored?
 
         """
-        _ = self.getText(command.jid)
-        
         # Handle normal notifications
         if isinstance(command, cmd.NotificationCommand):
             for recipient in command.jids:
@@ -225,6 +223,8 @@
 
                 self.send_message(jid, text)
 
+        _ = self.getText(command.jid)
+
         # Handle subscribtion management commands
         if isinstance(command, cmd.AddJIDToRosterCommand):
             jid = JID(node_or_jid=command.jid)