summaryrefslogtreecommitdiff
path: root/src/mod_s2s_dialback.erl
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-10-13 20:48:21 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-10-13 20:48:21 +0300
commit1bb2bae62b446f279182d4474076b97e887b1f49 (patch)
tree8085857f2766b456c7baa01ac6151bc5cc6207e9 /src/mod_s2s_dialback.erl
parentSend presence-unavailable when expulsing a participant (diff)
Reflect changes in the xmpp lib
Diffstat (limited to 'src/mod_s2s_dialback.erl')
-rw-r--r--src/mod_s2s_dialback.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mod_s2s_dialback.erl b/src/mod_s2s_dialback.erl
index 403ac9cc..b4c2ed9d 100644
--- a/src/mod_s2s_dialback.erl
+++ b/src/mod_s2s_dialback.erl
@@ -353,9 +353,9 @@ format_stanza_error(#stanza_error{reason = Reason, text = Txt}) ->
#redirect{} -> <<"redirect">>;
_ -> erlang:atom_to_binary(Reason, latin1)
end,
- case Txt of
- undefined -> Slogan;
- #text{data = <<"">>} -> Slogan;
- #text{data = Data} ->
+ case xmpp:get_text(Txt) of
+ <<"">> ->
+ Slogan;
+ Data ->
<<Data/binary, " (", Slogan/binary, ")">>
end.