diff options
author | Badlop <badlop@process-one.net> | 2016-12-17 11:45:28 +0100 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2016-12-17 11:46:16 +0100 |
commit | 3811a6157330a6b82465973e622c23f2648d4fa5 (patch) | |
tree | 6023eabdc50c4f3eb46d314a3f7e2c5fcbab62e9 | |
parent | Describe command arguments and results in ejabberd_admin (diff) |
Extract correctly the text from #stanza_error (#1425)
-rw-r--r-- | src/mod_muc_room.erl | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/mod_muc_room.erl b/src/mod_muc_room.erl index 07689db19..a172bd38c 100644 --- a/src/mod_muc_room.erl +++ b/src/mod_muc_room.erl @@ -1264,12 +1264,7 @@ get_error_condition(undefined) -> "undefined". get_error_text(Error) -> - case fxml:get_subtag_with_xmlns(Error, <<"text">>, ?NS_STANZAS) of - #xmlel{} = Tag -> - fxml:get_tag_cdata(Tag); - false -> - <<"">> - end. + (Error#stanza_error.text)#text.data. -spec make_reason(stanza(), jid(), state(), binary()) -> binary(). make_reason(Packet, From, StateData, Reason1) -> |