mirror of
http://aero2k.de/t/repos/urlbot-native.git
synced 2017-09-06 15:25:38 +02:00
"nospoiler" pseudo command added
This commit is contained in:
@@ -212,7 +212,7 @@ def parse_commands(data):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
if 'command' in data:
|
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:
|
elif 'version' in data:
|
||||||
chat_write(reply_user + (''': I'm running ''' + VERSION))
|
chat_write(reply_user + (''': I'm running ''' + VERSION))
|
||||||
elif 'unikot' in data:
|
elif 'unikot' in data:
|
||||||
@@ -270,6 +270,10 @@ def parse_delete(filepath):
|
|||||||
parse_pn(content)
|
parse_pn(content)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if 'nospoiler' in content:
|
||||||
|
logger('info', "no spoiler for: " + content)
|
||||||
|
return
|
||||||
|
|
||||||
if True != extract_url(content):
|
if True != extract_url(content):
|
||||||
parse_commands(content)
|
parse_commands(content)
|
||||||
parse_other(content)
|
parse_other(content)
|
||||||
|
|||||||
Reference in New Issue
Block a user