From ef22b509dfe39e6d7a4d5e93c2dd1708d253eacc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Mon, 7 Aug 2017 19:21:15 +0200 Subject: Fix reception of private messages (variable used but not defined) --- poezio/core/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3