From 83d6ecff3710e79fb6b0c6915870f28f8084c6a4 Mon Sep 17 00:00:00 2001 From: urlbot Date: Tue, 2 Dec 2014 16:32:53 +0100 Subject: [PATCH] remove obsolete bot_user check; decrease debug logging --- plugins.py | 4 ---- urlbot.py | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/plugins.py b/plugins.py index 2af798c..a25e148 100644 --- a/plugins.py +++ b/plugins.py @@ -471,10 +471,6 @@ def data_parse_commands(msg): if 2 > len(words): # need at least two words return None - # don't reply if beginning of the text matches bot_user - if not words[1].startswith(conf('bot_user')): - return None - if 'hangup' in data: logger('warn', 'received hangup: ' + data) sys.exit(1) diff --git a/urlbot.py b/urlbot.py index 7508398..7956183 100755 --- a/urlbot.py +++ b/urlbot.py @@ -287,7 +287,7 @@ if '__main__' == __name__: print(sys.argv[0] + ' ' + VERSION) logging.basicConfig( - level=logging.DEBUG, + level=logging.INFO, format='%(levelname)-8s %(message)s' )