mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-05-04 09:21:14 -05:00
add ignoreNicks config
This commit is contained in:
parent
7f63ebcba9
commit
5b34b31e2f
@ -148,6 +148,9 @@ class Markovgen(callbacks.Plugin):
|
||||
if match:
|
||||
log.debug("Markovgen: %s matches ignorePattern for %s" % (message, channel))
|
||||
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)
|
||||
if strip:
|
||||
match = re.findall(strip, message)
|
||||
|
Loading…
x
Reference in New Issue
Block a user