summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-08-07 19:21:15 +0200
committerlouiz’ <louiz@louiz.org>2017-08-07 19:21:15 +0200
commitef22b509dfe39e6d7a4d5e93c2dd1708d253eacc (patch)
treeb40e2ce51dd8e2272e88486160a01ecd52de2bd2
parent51b908348e16125c458b7b5d0a97839085b1d83f (diff)
downloadpoezio-ef22b509dfe39e6d7a4d5e93c2dd1708d253eacc.tar.gz
poezio-ef22b509dfe39e6d7a4d5e93c2dd1708d253eacc.tar.bz2
poezio-ef22b509dfe39e6d7a4d5e93c2dd1708d253eacc.tar.xz
poezio-ef22b509dfe39e6d7a4d5e93c2dd1708d253eacc.zip
Fix reception of private messages (variable used but not defined)
-rw-r--r--poezio/core/handlers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/poezio/core/handlers.py b/poezio/core/handlers.py
index e38fcbda..6f87a61a 100644
--- a/poezio/core/handlers.py
+++ b/poezio/core/handlers.py
@@ -625,9 +625,9 @@ class HandlerCore:
if not body or not tab:
return
replaced = False
+ user = tab.parent_muc.get_user_by_name(nick_from)
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',
room_from):
try: