mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-24 17:29:28 +01:00
Fix typos in mod_legacy_auth and mod_register
This commit is contained in:
parent
bd064fa3fc
commit
303eea5e4d
@ -69,7 +69,7 @@ c2s_unauthenticated_packet(State, #iq{type = T, sub_els = [_]} = IQ)
|
||||
catch _:{xmpp_codec, Why} ->
|
||||
Txt = xmpp:io_format_error(Why),
|
||||
Lang = maps:get(lang, State),
|
||||
Err = xmpp:make_error(IQ, xmpp:error_bad_request(Txt, Lang)),
|
||||
Err = xmpp:make_error(IQ, xmpp:err_bad_request(Txt, Lang)),
|
||||
{stop, ejabberd_c2s:send(State, Err)}
|
||||
end;
|
||||
c2s_unauthenticated_packet(State, _) ->
|
||||
|
@ -108,7 +108,7 @@ c2s_unauthenticated_packet(#{ip := IP, server := Server} = State,
|
||||
catch _:{xmpp_codec, Why} ->
|
||||
Txt = xmpp:io_format_error(Why),
|
||||
Lang = maps:get(lang, State),
|
||||
Err = xmpp:make_error(IQ, xmpp:error_bad_request(Txt, Lang)),
|
||||
Err = xmpp:make_error(IQ, xmpp:err_bad_request(Txt, Lang)),
|
||||
{stop, ejabberd_c2s:send(State, Err)}
|
||||
end;
|
||||
c2s_unauthenticated_packet(State, _) ->
|
||||
|
Loading…
Reference in New Issue
Block a user