add strict moin() blacklist
This commit is contained in:
@@ -48,6 +48,7 @@ config = {
|
||||
|
||||
# the "moin" feature will be "disabled" for given users
|
||||
'moin-modified-user': (),
|
||||
'moin-disabled-user': (),
|
||||
|
||||
'tea_steep_time': (3*60 + 40),
|
||||
|
||||
|
||||
@@ -121,6 +121,10 @@ def parse_skynet(**args):
|
||||
|
||||
@pluginfunction('moin', 'parse moin/bye', ptypes_PARSE)
|
||||
def parse_moin_bye(**args):
|
||||
if args['reply_user'] in conf('moin-disabled-user'):
|
||||
logger('plugin', 'moin blacklist match')
|
||||
return
|
||||
|
||||
moin = [
|
||||
'Hi',
|
||||
'Guten Morgen', 'Morgen',
|
||||
|
||||
Reference in New Issue
Block a user