remove obsolete bot_user check; decrease debug logging
This commit is contained in:
@@ -471,10 +471,6 @@ def data_parse_commands(msg):
|
|||||||
if 2 > len(words): # need at least two words
|
if 2 > len(words): # need at least two words
|
||||||
return None
|
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:
|
if 'hangup' in data:
|
||||||
logger('warn', 'received hangup: ' + data)
|
logger('warn', 'received hangup: ' + data)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|||||||
@@ -287,7 +287,7 @@ if '__main__' == __name__:
|
|||||||
print(sys.argv[0] + ' ' + VERSION)
|
print(sys.argv[0] + ' ' + VERSION)
|
||||||
|
|
||||||
logging.basicConfig(
|
logging.basicConfig(
|
||||||
level=logging.DEBUG,
|
level=logging.INFO,
|
||||||
format='%(levelname)-8s %(message)s'
|
format='%(levelname)-8s %(message)s'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user