Commit 3eced77c authored by Philipp Hörist's avatar Philipp Hörist

Fix example client

parent ba85a309
Pipeline #5574 passed with stages
in 41 seconds
......@@ -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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment