summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2013-12-19 00:20:24 +0100
committermakefu <github@syntax-fehler.de>2013-12-19 00:20:24 +0100
commit0ea4ecfaeae4de01a416e4f56f9809fed3bc0b62 (patch)
treecba1a45515f4ea38425327877fe691c741554366
parent950f3944d5ccf9fbe4fa72382d0a97cc1f7daa0a (diff)
parentb8500bbf9d4be969289b88755d03bbfa64859410 (diff)
Merge branch 'master' of github.com:krebscode/painload
-rwxr-xr-xReaktor/commands/respond2
-rw-r--r--Reaktor/config.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/Reaktor/commands/respond b/Reaktor/commands/respond
new file mode 100755
index 00000000..e23dc3ef
--- /dev/null
+++ b/Reaktor/commands/respond
@@ -0,0 +1,2 @@
+#!/bin/sh
+printf '%s\n' "${_from}: $*"
diff --git a/Reaktor/config.py b/Reaktor/config.py
index ce86faa9..0ae76811 100644
--- a/Reaktor/config.py
+++ b/Reaktor/config.py
@@ -30,7 +30,7 @@ commands = [
default_command('nocommand'),
# command not found
{ 'pattern': '^(?:' + name + '|\\*):.*',
- 'argv': [ 'commands/say', '{TODO:fromname}: you are made of stupid!' ] },
+ 'argv': [ 'commands/respond','You are made of stupid!'] },
# "highlight"
{ 'pattern': '.*\\b' + name + '\\b.*',
'argv': [ 'commands/say', 'I\'m famous' ] }