little bugfix: missing arg to NOTIFY event
This commit is contained in:
parent
a758d7babb
commit
751ae44b7c
|
@ -299,9 +299,10 @@ class Connection:
|
||||||
self.dispatch('ERROR', (errmsg, ''))
|
self.dispatch('ERROR', (errmsg, ''))
|
||||||
elif errcode == '502': # Internal Timeout:
|
elif errcode == '502': # Internal Timeout:
|
||||||
self.dispatch('NOTIFY', (prs.getFrom().getStripped().encode('utf8'),
|
self.dispatch('NOTIFY', (prs.getFrom().getStripped().encode('utf8'),
|
||||||
'error', errmsg, prs.getFrom().getResource().encode('utf8'), prio, keyID,
|
'error', errmsg, prs.getFrom().getResource().encode('utf8'),
|
||||||
prs.getRole(), prs.getAffiliation(), prs.getJid(),
|
prio, keyID, prs.getRole(), prs.getAffiliation(), prs.getJid(),
|
||||||
prs.getReason(), prs.getActor(), prs.getStatusCode()))
|
prs.getReason(), prs.getActor(), prs.getStatusCode(),
|
||||||
|
prs.getNewNick()))
|
||||||
else:
|
else:
|
||||||
self.dispatch('ERROR_ANSWER', (prs.getFrom().getStripped(), errmsg,
|
self.dispatch('ERROR_ANSWER', (prs.getFrom().getStripped(), errmsg,
|
||||||
errcode))
|
errcode))
|
||||||
|
|
Loading…
Reference in New Issue