aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakefu <root@pigstarter.de>2014-04-25 12:23:40 +0200
committermakefu <root@pigstarter.de>2014-04-25 12:23:40 +0200
commitc7e714ff331761a3c50d47e3b5a4834de92c2adc (patch)
treefa8eb0d3b8a19cb3e8602c0dc49c11bca3f9cc06
parent2c8b4ba157c082e298f71c45f5f8c8b50ff7e97f (diff)
parentdc1edc3f74d9b57579c454cbc21b7060836f2f49 (diff)
Merge branch 'master' of https://github.com/krebscode/painload
-rw-r--r--config.py2
-rw-r--r--titlebot/titlebot.py18
2 files changed, 10 insertions, 10 deletions
diff --git a/config.py b/config.py
index db4c8a3..0a01c5c 100644
--- a/config.py
+++ b/config.py
@@ -46,7 +46,7 @@ public_commands = [
'argv': [ 'commands/say', 'I\'m famous' ] },
# identify via direct connect
{ 'capname': 'identify',
- 'pattern': 'identify' + '\\s*(?:\\s+(?P<args>.*))?$',
+ 'pattern': '^identify' + '\\s*(?:\\s+(?P<args>.*))?$',
'argv' : [ 'commands/identify' ]}
]
commands = [
diff --git a/titlebot/titlebot.py b/titlebot/titlebot.py
index f85e69f..396b9b5 100644
--- a/titlebot/titlebot.py
+++ b/titlebot/titlebot.py
@@ -33,7 +33,7 @@ def default_command(cmd):
'capname': cmd,
'pattern': '^(?:' + name + '|\\*):\\s*' + cmd + '\\s*(?:\\s+(?P<args>.*))?$',
'argv': [ 'commands/' + cmd ] }
-def dot_command(cmd):
+def titlebot_cmd(cmd):
return {
'capname': cmd,
'pattern': '^\\.' + cmd + '\\s*(?:\\s+(?P<args>.*))?$',
@@ -46,19 +46,19 @@ public_commands = [
default_command('rev'),
default_command('uptime'),
default_command('nocommand'),
- dot_command('list'),
- dot_command('help'),
- dot_command('up'),
- dot_command('new'),
- dot_command('undo'),
- dot_command('down'),
+ titlebot_cmd('list'),
+ titlebot_cmd('help'),
+ titlebot_cmd('up'),
+ titlebot_cmd('new'),
+ titlebot_cmd('undo'),
+ titlebot_cmd('down'),
# identify via direct connect
{ 'capname': 'identify',
- 'pattern': 'identify' + '\\s*(?:\\s+(?P<args>.*))?$',
+ 'pattern': '^identify' + '\\s*(?:\\s+(?P<args>.*))?$',
'argv' : [ 'commands/identify' ]}
]
commands = [
default_command('reload'),
- dot_command('clear')
+ titlebot_cmd('clear')
]