Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/nbxmpp
diff options
context:
space:
mode:
authorlovetox <philipp@hoerist.com>2020-05-07 18:53:55 +0300
committerlovetox <philipp@hoerist.com>2020-05-07 18:53:55 +0300
commit3eced77ce4d04d15109f98f218107c266b43c6b5 (patch)
treef44a3155c11f6e9d57e07895503ef25856a48327 /nbxmpp
parentba85a309e21e6a19e5949e8adceb9e5496b85ce4 (diff)
Fix example client
Diffstat (limited to 'nbxmpp')
-rw-r--r--nbxmpp/examples/client.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nbxmpp/examples/client.py b/nbxmpp/examples/client.py
index 211a971..5693dc2 100644
--- a/nbxmpp/examples/client.py
+++ b/nbxmpp/examples/client.py
@@ -15,6 +15,7 @@ import nbxmpp
from nbxmpp.protocol import JID
from nbxmpp.client import Client
from nbxmpp.structs import ProxyData
+from nbxmpp.structs import StanzaHandler
from nbxmpp.addresses import ServerAddress
from nbxmpp.const import ConnectionType
from nbxmpp.const import ConnectionProtocol
@@ -108,7 +109,7 @@ class TestClient(Gtk.Window):
self._client.subscribe('stanza-sent', self._on_stanza_sent)
self._client.subscribe('stanza-received', self._on_stanza_received)
- self._client.register_handler('message', self._on_message)
+ self._client.register_handler(StanzaHandler('message', self._on_message))
@property
def password(self):