summaryrefslogtreecommitdiffstats
path: root/Reaktor
diff options
context:
space:
mode:
authormakefu <root@pigstarter.de>2014-04-25 14:18:25 +0200
committermakefu <root@pigstarter.de>2014-04-25 14:18:25 +0200
commit88ccd47a9b569db8c239a0abda1185dd647fb906 (patch)
tree71d44aa737e8179a2784a98551776e8d79f236f5 /Reaktor
parent8070f4a259cc02983ca7d3c8e86cb8da816a5c3b (diff)
fix {} in default_command function
Diffstat (limited to 'Reaktor')
-rw-r--r--Reaktor/config.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Reaktor/config.py b/Reaktor/config.py
index 7f3f9c40..5858532e 100644
--- a/Reaktor/config.py
+++ b/Reaktor/config.py
@@ -17,8 +17,8 @@ irc_restart_timeout = 5
irc_channels = [
'#krebs'
]
-admin_file='admin.lst'
-auth_file='auth.lst'
+admin_file=workdir+'/admin.lst'
+auth_file=workdir+'/auth.lst'
config_filename = abspath(__file__)
@@ -26,7 +26,8 @@ config_filename = abspath(__file__)
me = '\\b' + re.escape(name) + '\\b'
me_or_us = '(?:' + me + '|\\*)'
-def default_command(cmd, env={}):
+def default_command(cmd, env=None):
+ if not env: env = {}
return {
'capname': cmd,
'pattern': '^' + me_or_us + ':\\s*' + cmd + '\\s*(?:\\s+(?P<args>.*))?$',