little bugfix: missing arg to NOTIFY event

This commit is contained in:
Yann Leboulanger 2005-06-20 07:50:50 +00:00
parent a758d7babb
commit 751ae44b7c
1 changed files with 4 additions and 3 deletions

View File

@ -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))