Software /
code /
prosody
Diff
plugins/mod_mam/mod_mam.lua @ 10111:0f335815244f
plugins: Remove tostring call from logging
Taken care of by loggingmanager now
Mass-rewrite using lua pattern like `tostring%b()`
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 30 Jul 2019 02:29:36 +0200 |
parent | 10079:a36c731ed540 |
child | 10299:fd94721186b8 |
line wrap: on
line diff
--- a/plugins/mod_mam/mod_mam.lua Tue Jul 30 02:24:06 2019 +0200 +++ b/plugins/mod_mam/mod_mam.lua Tue Jul 30 02:29:36 2019 +0200 @@ -224,13 +224,13 @@ end local prefs = get_prefs(user); local rule = prefs[who]; - module:log("debug", "%s's rule for %s is %s", user, who, tostring(rule)); + module:log("debug", "%s's rule for %s is %s", user, who, rule); if rule ~= nil then return rule; end -- Below could be done by a metatable local default = prefs[false]; - module:log("debug", "%s's default rule is %s", user, tostring(default)); + module:log("debug", "%s's default rule is %s", user, default); if default == "roster" then return has_in_roster(user, who); end