Comparison

plugins/mod_pep_simple.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 9691:e11e076f0eb8
child 10555:f73947a9bd8c
comparison
equal deleted inserted replaced
10110:3fa3872588a8 10111:0f335815244f
228 session.send(st.error_reply(stanza, 'cancel', 'item-not-found')); 228 session.send(st.error_reply(stanza, 'cancel', 'item-not-found'));
229 module:log("debug", "Item '%s' not found", node) 229 module:log("debug", "Item '%s' not found", node)
230 return true; 230 return true;
231 else --invalid request 231 else --invalid request
232 session.send(st.error_reply(stanza, 'modify', 'bad-request')); 232 session.send(st.error_reply(stanza, 'modify', 'bad-request'));
233 module:log("debug", "Invalid request: %s", tostring(payload)); 233 module:log("debug", "Invalid request: %s", payload);
234 return true; 234 return true;
235 end 235 end
236 else --no presence subscription 236 else --no presence subscription
237 session.send(st.error_reply(stanza, 'auth', 'not-authorized') 237 session.send(st.error_reply(stanza, 'auth', 'not-authorized')
238 :tag('presence-subscription-required', {xmlns='http://jabber.org/protocol/pubsub#errors'})); 238 :tag('presence-subscription-required', {xmlns='http://jabber.org/protocol/pubsub#errors'}));
239 module:log("debug", "Unauthorized request: %s", tostring(payload)); 239 module:log("debug", "Unauthorized request: %s", payload);
240 return true; 240 return true;
241 end 241 end
242 end 242 end
243 end); 243 end);
244 244