summaryrefslogtreecommitdiff
path: root/src/tabs.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-01-12 18:34:04 +0100
committerFlorent Le Coz <louiz@louiz.org>2011-01-12 18:34:04 +0100
commitce1fc18e104c9ed963347c50c48a7e40f755027e (patch)
tree11e35a47d8b8001503174920fa567584a7b22a6a /src/tabs.py
parent22ad96e7aa06e03d380f35d66212cea713dff0f2 (diff)
downloadpoezio-ce1fc18e104c9ed963347c50c48a7e40f755027e.tar.gz
poezio-ce1fc18e104c9ed963347c50c48a7e40f755027e.tar.bz2
poezio-ce1fc18e104c9ed963347c50c48a7e40f755027e.tar.xz
poezio-ce1fc18e104c9ed963347c50c48a7e40f755027e.zip
Log messages from normal and private conversations as well
Diffstat (limited to 'src/tabs.py')
-rw-r--r--src/tabs.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tabs.py b/src/tabs.py
index 92b6f9c5..1c0e4d93 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -43,6 +43,7 @@ from sleekxmpp.xmlstream.stanzabase import JID
from config import config
from roster import RosterGroup, roster
from contact import Contact, Resource
+from logger import logger
import multiuserchat as muc
class Tab(object):
@@ -655,6 +656,7 @@ class PrivateTab(ChatTab):
def command_say(self, line):
muc.send_private_message(self.core.xmpp, self.get_name(), line)
self.core.add_message_to_text_buffer(self.get_room(), line, None, self.get_room().own_nick)
+ logger.log_message(self.get_name().replace('/', '\\'), self.get_room().own_nick, line)
def command_unquery(self, arg):
"""
@@ -1034,6 +1036,7 @@ class ConversationTab(ChatTab):
def command_say(self, line):
muc.send_private_message(self.core.xmpp, self.get_name(), line)
self.core.add_message_to_text_buffer(self.get_room(), line, None, self.core.own_nick)
+ logger.log_message(JID(self.get_name()).bare, self.core.own_nick, line)
def command_unquery(self, arg):
self.core.close_tab()