diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2011-01-02 16:58:40 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2011-01-02 16:58:40 +0000 |
commit | ab85a3dc219ac3b64d7294deb52847c093a2a516 (patch) | |
tree | a2ca2db2a30473cc65b883796bd3cc37c5c26fd5 /src/room.py | |
parent | c29cc8b15facd52aa6f202402565e07b2477146b (diff) | |
download | poezio-ab85a3dc219ac3b64d7294deb52847c093a2a516.tar.gz poezio-ab85a3dc219ac3b64d7294deb52847c093a2a516.tar.bz2 poezio-ab85a3dc219ac3b64d7294deb52847c093a2a516.tar.xz poezio-ab85a3dc219ac3b64d7294deb52847c093a2a516.zip |
fix the log of MUC messages in files
Diffstat (limited to 'src/room.py')
-rw-r--r-- | src/room.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/room.py b/src/room.py index f263aef5..b1b77d1e 100644 --- a/src/room.py +++ b/src/room.py @@ -24,6 +24,10 @@ from message import Message import common import theme +import logging + +log = logging.getLogger(__name__) + class Room(TextBuffer): def __init__(self, name, nick): TextBuffer.__init__(self) @@ -46,8 +50,8 @@ class Room(TextBuffer): Log the messages in the archives, if it needs to be """ - if time == None and self.joined: # don't log the history messages - logger.message(self.name, nickname, txt) + if time is None and self.joined: # don't log the history messages + logger.groupchat(self.name, nickname, txt) def do_highlight(self, txt, time, nickname): """ @@ -94,7 +98,7 @@ class Room(TextBuffer): when we receive an history message said by someone who is not in the room anymore """ - # self.log_message(txt, time, nickname) + self.log_message(txt, time, nickname) if txt.startswith('/me '): txt = "* " + nickname + ' ' + txt[4:] nickname = None |