diff options
author | Evgeny Khramtsov <ekhramtsov@process-one.net> | 2019-06-14 12:33:26 +0300 |
---|---|---|
committer | Evgeny Khramtsov <ekhramtsov@process-one.net> | 2019-06-14 12:33:26 +0300 |
commit | a02cff0e780bb735531594c4ece81e8628f79782 (patch) | |
tree | 6fe7d8219d14f58183be1741fcea262c216db447 /src/mod_mix_pam_sql.erl | |
parent | Return jid_malformed error when sending presence without nick to conference (diff) |
Use new configuration validator
Diffstat (limited to 'src/mod_mix_pam_sql.erl')
-rw-r--r-- | src/mod_mix_pam_sql.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mod_mix_pam_sql.erl b/src/mod_mix_pam_sql.erl index eda5966f1..c23046154 100644 --- a/src/mod_mix_pam_sql.erl +++ b/src/mod_mix_pam_sql.erl @@ -22,7 +22,6 @@ %%%---------------------------------------------------------------------- -module(mod_mix_pam_sql). -behaviour(mod_mix_pam). --compile([{parse_transform, ejabberd_sql_pt}]). %% API -export([init/2, add_channel/3, get_channel/2, @@ -109,6 +108,7 @@ del_channels(User) -> %%%=================================================================== %%% Internal functions %%%=================================================================== --spec report_corrupted(iolist()) -> ok. +-spec report_corrupted(#sql_query{}) -> ok. report_corrupted(SQL) -> - ?ERROR_MSG("Corrupted values returned by SQL request: ~s", [SQL]). + ?ERROR_MSG("Corrupted values returned by SQL request: ~s", + [SQL#sql_query.hash]). |