"nospoiler" pseudo command added

This commit is contained in:
urlbot
2014-09-17 15:49:52 +02:00
parent 16c1b1aa4d
commit 288e41efaf

View File

@@ -212,7 +212,7 @@ def parse_commands(data):
return False
if 'command' in data:
chat_write(reply_user + (""": known commands: 'command', 'info', 'hangup', 'ping', 'uptime', 'source', 'version'"""))
chat_write(reply_user + (""": known commands: 'command', 'info', 'hangup', 'nospoiler', 'ping', 'uptime', 'source', 'version'"""))
elif 'version' in data:
chat_write(reply_user + (''': I'm running ''' + VERSION))
elif 'unikot' in data:
@@ -270,6 +270,10 @@ def parse_delete(filepath):
parse_pn(content)
return
if 'nospoiler' in content:
logger('info', "no spoiler for: " + content)
return
if True != extract_url(content):
parse_commands(content)
parse_other(content)