Log the private messages sent

This commit is contained in:
mathieui 2012-02-05 16:38:40 +01:00
parent e74a640fdd
commit 5593fabe6c

View file

@ -1388,6 +1388,7 @@ class PrivateTab(ChatTab):
msg = self.core.xmpp.make_message(self.get_name()) msg = self.core.xmpp.make_message(self.get_name())
msg['type'] = 'chat' msg['type'] = 'chat'
msg['body'] = line msg['body'] = line
logger.log_message(self.get_name().replace('/', '\\'), self.own_nick, line)
# trigger the event BEFORE looking for colors. # trigger the event BEFORE looking for colors.
# This lets a plugin insert \x19xxx} colors, that will # This lets a plugin insert \x19xxx} colors, that will
# be converted in xhtml. # be converted in xhtml.