Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
-
d022a925
by Philipp Hörist at 2018-07-07T18:19:36+02:00
1 changed file:
Changes:
| ... | ... | @@ -417,6 +417,9 @@ class XMPPDispatcher(PlugIn): |
| 417 | 417 |
|
| 418 | 418 |
#log.info('dispatch called: stanza = %s, session = %s, direct= %s'
|
| 419 | 419 |
# % (stanza, session, direct))
|
| 420 |
+ |
|
| 421 |
+ self.Event('', 'STANZA_RECEIVED', stanza)
|
|
| 422 |
+ |
|
| 420 | 423 |
if not session:
|
| 421 | 424 |
session = self
|
| 422 | 425 |
session.Stream._mini_dom = None
|
| ... | ... | @@ -571,6 +574,8 @@ class XMPPDispatcher(PlugIn): |
| 571 | 574 |
if self._owner._registered_name and not stanza.getAttr('from'):
|
| 572 | 575 |
stanza.setAttr('from', self._owner._registered_name)
|
| 573 | 576 |
|
| 577 |
+ self.Event('', 'STANZA_SENT', stanza)
|
|
| 578 |
+ |
|
| 574 | 579 |
self._owner.Connection.send(stanza, now)
|
| 575 | 580 |
|
| 576 | 581 |
# If no ID then it is a whitespace
|