aboutsummaryrefslogtreecommitdiff
path: root/src/mod_privacy_odbc.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/mod_privacy_odbc.erl')
-rw-r--r--src/mod_privacy_odbc.erl10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mod_privacy_odbc.erl b/src/mod_privacy_odbc.erl
index ae572ae64..5ad2fb958 100644
--- a/src/mod_privacy_odbc.erl
+++ b/src/mod_privacy_odbc.erl
@@ -726,11 +726,11 @@ raw_to_item({SType, SValue, SAction, SOrder, SMatchAll, SMatchIQ,
"d" -> deny
end,
Order = list_to_integer(SOrder),
- MatchAll = SMatchAll == "1" orelse SMatchAll == "t",
- MatchIQ = SMatchIQ == "1" orelse SMatchIQ == "t" ,
- MatchMessage = SMatchMessage == "1" orelse SMatchMessage == "t",
- MatchPresenceIn = SMatchPresenceIn == "1" orelse SMatchPresenceIn == "t",
- MatchPresenceOut = SMatchPresenceOut == "1" orelse SMatchPresenceOut == "t",
+ MatchAll = ejabberd_odbc:to_bool(SMatchAll),
+ MatchIQ = ejabberd_odbc:to_bool(SMatchIQ),
+ MatchMessage = ejabberd_odbc:to_bool(SMatchMessage),
+ MatchPresenceIn = ejabberd_odbc:to_bool(SMatchPresenceIn),
+ MatchPresenceOut = ejabberd_odbc:to_bool(SMatchPresenceOut),
#listitem{type = Type,
value = Value,
action = Action,