add strict moin() blacklist

This commit is contained in:
urlbot
2015-06-20 15:17:11 +02:00
parent 08df294e87
commit d111a4f69c
2 changed files with 5 additions and 0 deletions

View File

@@ -48,6 +48,7 @@ config = {
# the "moin" feature will be "disabled" for given users # the "moin" feature will be "disabled" for given users
'moin-modified-user': (), 'moin-modified-user': (),
'moin-disabled-user': (),
'tea_steep_time': (3*60 + 40), 'tea_steep_time': (3*60 + 40),

View File

@@ -121,6 +121,10 @@ def parse_skynet(**args):
@pluginfunction('moin', 'parse moin/bye', ptypes_PARSE) @pluginfunction('moin', 'parse moin/bye', ptypes_PARSE)
def parse_moin_bye(**args): def parse_moin_bye(**args):
if args['reply_user'] in conf('moin-disabled-user'):
logger('plugin', 'moin blacklist match')
return
moin = [ moin = [
'Hi', 'Hi',
'Guten Morgen', 'Morgen', 'Guten Morgen', 'Morgen',