From be26f5012086b0d28a70a6db7b07ed0b2fd32383 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Philipp=20H=C3=B6rist?= <philipp@hoerist.com>
Date: Sat, 16 Mar 2019 14:01:49 +0100
Subject: [PATCH] Fix nbxmpp method calls

features_nb was renamed
---
 gajim/common/connection.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gajim/common/connection.py b/gajim/common/connection.py
index 7367e10afb..6a0f2c63a6 100644
--- a/gajim/common/connection.py
+++ b/gajim/common/connection.py
@@ -758,7 +758,7 @@ class Connection(CommonConnection, ConnectionHandlers):
             return
 
         if realm == nbxmpp.NS_REGISTER:
-            if event == nbxmpp.features_nb.REGISTER_DATA_RECEIVED:
+            if event == nbxmpp.features.REGISTER_DATA_RECEIVED:
                 # data is (agent, DataFrom, is_form, error_msg)
                 if self.new_account_info and \
                 self.new_account_info['hostname'] == data[0]:
@@ -812,7 +812,7 @@ class Connection(CommonConnection, ConnectionHandlers):
                                 app.nec.push_incoming_event(NetworkEvent(
                                     'account-not-created', conn=self, reason=reason))
                                 return
-                            nbxmpp.features_nb.register(self.connection,
+                            nbxmpp.features.register(self.connection,
                                     self._hostname, self.new_account_form,
                                     _on_register_result)
                         return
@@ -1763,7 +1763,7 @@ class Connection(CommonConnection, ConnectionHandlers):
             return
         self.on_connect_failure = None
         self.connection = con
-        nbxmpp.features_nb.getRegInfo(con, self._hostname)
+        nbxmpp.features.getRegInfo(con, self._hostname)
 
     def getRoster(self):
         return self.get_module('Roster')
-- 
GitLab