diff --git a/README.md b/README.md index 32b76f9..8a4b5cd 100644 --- a/README.md +++ b/README.md @@ -155,6 +155,7 @@ Each of those detections has the same kind of settings: there is *Permit (-1 to - b : ban the user - k : kick the user - r : remove (force part) the user, if the ircd has the feature. 'REMOVE $channel $nick :$reason' +- d : debug > forward action to logChannel if configured For bans (b and q mode), you can choose the *Duration of the quiet/ban, and add a *Mark on the related quiet/ban. The 'bad' settings, when enabled (badPermit > -1) keeps track of users who did something wrong during badLife, and can end to badMode if the user exceeds the limit. diff --git a/plugin.py b/plugin.py index 2f2df57..5fe1633 100644 --- a/plugin.py +++ b/plugin.py @@ -2821,6 +2821,10 @@ class ChanTracker(callbacks.Plugin,plugins.ChannelDBHandler): # protection features def _act (self,irc,channel,mode,mask,duration,reason): + if mode == 'd': + if self.registryValue('logChannel',channel=channel) in irc.state.channels: + self._logChan(irc,channel,'[%s] debug %s %s %s %s' % (channel,mode,mask,duration,reason) + return if mode in self.registryValue('modesToAsk',channel=channel) or mode in self.registryValue('modesToAskWhenOpped',channel=channel): i = self.getIrc(irc) if i.add(irc,channel,mode,mask,duration,irc.prefix,self.getDb(irc.network)):