summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2017-07-21 15:27:22 +0200
committermathieui <mathieui@mathieui.net>2017-07-21 15:27:22 +0200
commit93129fb06421520f967e80e2f14149e0d4219a3a (patch)
treed3e4ede1826bf99baa121606306a47e78a827901
parent90f43e2bb56ea994a43610112a141bd084f834a4 (diff)
downloadpoezio-93129fb06421520f967e80e2f14149e0d4219a3a.tar.gz
poezio-93129fb06421520f967e80e2f14149e0d4219a3a.tar.bz2
poezio-93129fb06421520f967e80e2f14149e0d4219a3a.tar.xz
poezio-93129fb06421520f967e80e2f14149e0d4219a3a.zip
Fix message correction
-rw-r--r--poezio/core/handlers.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/poezio/core/handlers.py b/poezio/core/handlers.py
index f6496bac..9fe42a0d 100644
--- a/poezio/core/handlers.py
+++ b/poezio/core/handlers.py
@@ -315,7 +315,7 @@ class HandlerCore:
delayed, date = common.find_delayed_tag(message)
def try_modify():
- if not message.xml.find('{urn:xmpp:message-correct:0}replace'):
+ if not message.xml.find('{urn:xmpp:message-correct:0}replace') is not None:
return False
replaced_id = message['replace']['id']
if replaced_id and config.get_by_tabname('group_corrections',
@@ -547,7 +547,7 @@ class HandlerCore:
old_state = tab.state
delayed, date = common.find_delayed_tag(message)
replaced = False
- if message.xml.find('{urn:xmpp:message-correct:0}replace'):
+ if message.xml.find('{urn:xmpp:message-correct:0}replace') is not None:
replaced_id = message['replace']['id']
if replaced_id is not '' and config.get_by_tabname('group_corrections',
message['from'].bare):
@@ -625,7 +625,7 @@ class HandlerCore:
if not body or not tab:
return
replaced = False
- if message.xml.find('{urn:xmpp:message-correct:0}replace'):
+ if message.xml.find('{urn:xmpp:message-correct:0}replace') is not None:
replaced_id = message['replace']['id']
user = tab.parent_muc.get_user_by_name(nick_from)
if replaced_id is not '' and config.get_by_tabname('group_corrections',