From 19624f914caf0dae856ee0171c0441db0ce0ed52 Mon Sep 17 00:00:00 2001 From: Thorsten Date: Sat, 28 Nov 2015 15:15:05 +0100 Subject: [PATCH] don't spam on multiple detection --- plugins.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins.py b/plugins.py index 582d851..7fa7579 100644 --- a/plugins.py +++ b/plugins.py @@ -975,13 +975,13 @@ def recognize_bots(**args): blob['other_bots'] = [] if args['reply_user'] not in blob['other_bots']: blob['other_bots'].append(args['reply_user']) - conf_save(blob) - return { - 'event': { - 'time': time.time() + 3, - 'msg': 'Making notes...' + conf_save(blob) + return { + 'event': { + 'time': time.time() + 3, + 'msg': 'Making notes...' + } } - } elif 'I\'ll be back' in args['data']: # a buddy! blob = conf_load()