Change nbxmpp event we use for XMLConsole

This commit is contained in:
Philipp Hörist 2018-07-07 18:28:43 +02:00
parent 59428d2f2f
commit 3e4cf4a07d
1 changed files with 6 additions and 6 deletions

View File

@ -510,12 +510,12 @@ class CommonConnection:
def _event_dispatcher(self, realm, event, data): def _event_dispatcher(self, realm, event, data):
if realm == '': if realm == '':
if event == nbxmpp.transports_nb.DATA_RECEIVED: if event == 'STANZA_RECEIVED':
app.nec.push_incoming_event(StanzaReceivedEvent(None, app.nec.push_incoming_event(StanzaReceivedEvent(
conn=self, stanza_str=data)) None, conn=self, stanza_str=str(data)))
elif event == nbxmpp.transports_nb.DATA_SENT: elif event == 'STANZA_SENT':
app.nec.push_incoming_event(StanzaSentEvent(None, conn=self, app.nec.push_incoming_event(StanzaSentEvent(
stanza_str=data)) None, conn=self, stanza_str=str(data)))
def change_status(self, show, msg, auto=False): def change_status(self, show, msg, auto=False):
if not msg: if not msg: