diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2011-09-09 12:34:06 +1000 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2011-09-09 12:34:06 +1000 |
commit | e432ff58f96ece65ee28cb820cb9e6398787913e (patch) | |
tree | 2727dde6417524fa8b6268c8906fb8bfea3e5104 | |
parent | Fixed support for multi-resource occupants (EJAB-305) (diff) |
Avoid crash when performing admin action
-rw-r--r-- | src/mod_muc/mod_muc_room.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_muc/mod_muc_room.erl b/src/mod_muc/mod_muc_room.erl index 6483bfb45..a0a62298b 100644 --- a/src/mod_muc/mod_muc_room.erl +++ b/src/mod_muc/mod_muc_room.erl @@ -2496,7 +2496,7 @@ find_changed_items(UJID, UAffiliation, URole, "Jabber ID ~s is invalid"), [S]), {error, ?ERRT_NOT_ACCEPTABLE(Lang, ErrText)}; J -> - {value, J} + {value, [J]} end; _ -> case xml:get_attr("nick", Attrs) of @@ -2511,7 +2511,7 @@ find_changed_items(UJID, UAffiliation, URole, [N]), {error, ?ERRT_NOT_ACCEPTABLE(Lang, ErrText)}; J -> - {value, J} + {value, [J]} end; _ -> {error, ?ERR_BAD_REQUEST} |