projects
/
ejabberd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d9fca5
)
Fix error when nick registration stanza doesn't contain Value.
author
Badlop
<badlop@process-one.net>
Mon, 27 Jul 2009 09:36:49 +0000
(09:36 +0000)
committer
Badlop
<badlop@process-one.net>
Mon, 27 Jul 2009 09:36:49 +0000
(09:36 +0000)
SVN Revision: 2394
src/mod_muc/mod_muc.erl
patch
|
blob
|
history
diff --git
a/src/mod_muc/mod_muc.erl
b/src/mod_muc/mod_muc.erl
index 69f1983fbcfed50ea5d91d6fbb97ebd2583ded1d..22e8bb6e0c15e4257710da72de813dd8d43cd8e9 100644
(file)
--- a/
src/mod_muc/mod_muc.erl
+++ b/
src/mod_muc/mod_muc.erl
@@
-742,11
+742,11
@@
process_iq_register_set(Host, From, SubEl, Lang) ->
{error, ?ERR_BAD_REQUEST};
_ ->
case lists:keysearch("nick", 1, XData) of
- false ->
+ {value, {_, [Nick]}} when Nick /= "" ->
+ iq_set_register_info(Host, From, Nick, Lang);
+ _ ->
ErrText = "You must fill in field \"Nickname\" in the form",
- {error, ?ERRT_NOT_ACCEPTABLE(Lang, ErrText)};
- {value, {_, [Nick]}} ->
- iq_set_register_info(Host, From, Nick, Lang)
+ {error, ?ERRT_NOT_ACCEPTABLE(Lang, ErrText)}
end
end;
_ ->