add ignoreNicks config

This commit is contained in:
Gordon Shumway 2019-12-01 09:34:41 -05:00 committed by GitHub
parent 7f63ebcba9
commit 5b34b31e2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -148,6 +148,9 @@ class Markovgen(callbacks.Plugin):
if match: if match:
log.debug("Markovgen: %s matches ignorePattern for %s" % (message, channel)) log.debug("Markovgen: %s matches ignorePattern for %s" % (message, channel))
return return
if msg.nick.lower() in self.registryValue('ignoreNicks', channel):
log.debug("Markovgen: nick %s in ignoreNicks for %s" % (msg.nick, channel))
return
m = self._get_markov(irc, channel) m = self._get_markov(irc, channel)
if strip: if strip:
match = re.findall(strip, message) match = re.findall(strip, message)