diff --git a/local_config.py.skel b/local_config.py.skel index 9dc6c71..2c2c103 100644 --- a/local_config.py.skel +++ b/local_config.py.skel @@ -46,6 +46,9 @@ config = { # the "dice" feature will use more efficient random data (0) for given users 'enhanced-random-user': ('FIXME', 'FIXME'), + # the "moin" feature will be "disabled" for given users + 'moin-modified-user': (), + 'tea_steep_time': (3*60 + 40), 'image_preview': True diff --git a/plugins.py b/plugins.py index 71ca4e2..5eb3df6 100644 --- a/plugins.py +++ b/plugins.py @@ -142,6 +142,16 @@ def parse_moin_bye(**args): for w in words: if d.lower() == w.lower(): + if args['reply_user'] in conf('moin-modified-user'): + logger('plugin', 'being "quiet" for %s' % w) + return { + 'msg': '/me %s' % random.choice([ + "doesn't say anything at all", + 'whistles uninterested', + 'just ignores this incident' + ]) + } + logger('plugin', 'sent %s reply for %s' % ( 'moin' if direction is moin else 'bye', w ))