From 81e8093cd38cbd63fe020bf4a1e719afb8206514 Mon Sep 17 00:00:00 2001 From: Nicolas Coevoet Date: Wed, 7 Jul 2021 09:46:01 +0000 Subject: [PATCH] fix cclone being broken due to undefined args --- plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin.py b/plugin.py index 8d07f55..5b50f9f 100644 --- a/plugin.py +++ b/plugin.py @@ -2505,7 +2505,7 @@ class ChanTracker(callbacks.Plugin, plugins.ChannelDBHandler): irc.reply("Operators aren't allowed to see or change protection configuration in %s" % channel) chl = wrap(chl, ['op', optional('int'), optional('letter'), optional('positiveInt')]) - def cclone(self, irc, msg, args, channel, permit, life, mode, duration): + def cclone(self, irc, msg, args, channel, permit, mode, duration): """[] [] [] [] return channel's config or apply (bqeIkrdD) for (in seconds) @@ -4607,6 +4607,7 @@ class ChanTracker(callbacks.Plugin, plugins.ChannelDBHandler): # protection features def _act(self, irc, channel, mode, mask, duration, reason, nick): + self.log.info('ChanTracker: acting in %s against %s / %s : %s %s %s' % (channel, nick, mask, mode, duration, reason)) if mode == 'D': action = self.registryValue('modeD') if len(action):