diff options
author | Denis Fomin <fominde@gmail.com> | 2010-12-11 20:51:34 +0300 |
---|---|---|
committer | Denis Fomin <fominde@gmail.com> | 2010-12-11 20:51:34 +0300 |
commit | a94a7c983274e96ff45ea91ee725c975997848a4 (patch) | |
tree | 6c8c9ae65258b00380cdf5a525dc265f1e4bcba9 /src | |
parent | 2653c160f279d196cb22e07a4c44088d84b1eade (diff) |
Fix 'treat_incoming_messages' option. (didn’t get messages from the room)
Diffstat (limited to 'src')
-rw-r--r-- | src/common/connection_handlers_events.py | 4 | ||||
-rw-r--r-- | src/session.py | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/common/connection_handlers_events.py b/src/common/connection_handlers_events.py index ebf043b18..95e2176b5 100644 --- a/src/common/connection_handlers_events.py +++ b/src/common/connection_handlers_events.py @@ -1091,10 +1091,6 @@ class DecryptedMessageReceivedEvent(nec.NetworkIncomingEvent, HelperEvent): # XEP-0172 User Nickname self.user_nick = self.stanza.getTagData('nick') or '' - treat_as = gajim.config.get('treat_incoming_messages') - if treat_as: - self.mtype = treat_as - self.get_chatstate() return True diff --git a/src/session.py b/src/session.py index e50d61f84..3068f5b7a 100644 --- a/src/session.py +++ b/src/session.py @@ -97,6 +97,9 @@ class ChatControlSession(stanza_session.EncryptedStanzaSession): common.logger.LOG_DB_PATH self.conn.dispatch('ERROR', (pritext, sectext)) + treat_as = gajim.config.get('treat_incoming_messages') + if treat_as: + obj.mtype = treat_as pm = False if obj.gc_control and obj.resource: # It's a Private message |