]> granicus.if.org Git - ejabberd/commitdiff
* src/mod_muc/mod_muc.erl: Return bad-request if no x:data form
authorAlexey Shchepin <alexey@process-one.net>
Wed, 7 May 2003 14:17:53 +0000 (14:17 +0000)
committerAlexey Shchepin <alexey@process-one.net>
Wed, 7 May 2003 14:17:53 +0000 (14:17 +0000)
submited with nick registration

SVN Revision: 104

ChangeLog
src/mod_muc/mod_muc.erl

index 7888dc73639b389fc2f3223fa38432af37defaae..2ab2c23bec666eb446b3bc97f08b73f55d05ccf0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2003-05-07  Alexey Shchepin  <alexey@sevcom.net>
 
+       * src/mod_muc/mod_muc.erl: Return bad-request if no x:data form
+       submited with nick registration
+
        * src/mod_muc/mod_muc_room.erl: Don't check permissions on disco
        info query processing
 
index f8a6d12e93f33638ae71257a7be969e8933815ce..06cd2198eff6643b7215a30956f7a51e95d64487 100644 (file)
@@ -329,7 +329,9 @@ process_iq_register_set(From, SubEl) ->
                            {error, ?ERR_BAD_REQUEST};
                        _ ->
                            iq_set_register_info(From, XData)
-                   end
+                   end;
+               _ ->
+                   {error, ?ERR_BAD_REQUEST}
            end;
        _ ->
            {error, ?ERR_BAD_REQUEST}