diff options
| author | Zaran <zaran.krleza@gmail.com> | 2011-05-18 14:40:52 +0200 |
|---|---|---|
| committer | Zaran <zaran.krleza@gmail.com> | 2011-05-18 14:40:52 +0200 |
| commit | 52dd41c602a6d0d686c9daf4ece6d8bb461a8999 (patch) | |
| tree | 2739f3e5739fa2ee7d5723f780d4128665dfd2d7 | |
| parent | bcf0ab95b0e678127ffa6ad49f7d0efc85cd77ee (diff) | |
| download | alias-52dd41c602a6d0d686c9daf4ece6d8bb461a8999.tar.gz | |
Fix a bug in Guillaume's code causing the registration form to be
added twice when user was not registered.
| -rw-r--r-- | server/xep_0077.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/server/xep_0077.py b/server/xep_0077.py index 31585f3..ba6523d 100644 --- a/server/xep_0077.py +++ b/server/xep_0077.py @@ -134,13 +134,11 @@ class xep_0077(base_plugin): if registrant.is_registered(): reg['registered'] = True reg['form'] = registrant.get_registration() - else: - reg.add_form() iq.reply().setPayload(reg.xml) iq.send() - def _send_error(self, iq, code, error_type, name, text=''): + def _send_error(self, iq, code, error_type, name, text = ''): iq.reply().setPayload(iq['register'].xml) iq.error() iq['error']['code'] = code |
