aboutsummaryrefslogtreecommitdiffstats
path: root/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'config.py')
-rw-r--r--config.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/config.py b/config.py
index 90f33d3..424019a 100644
--- a/config.py
+++ b/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(cap, cmd=None, env={}):
+def default_command(cap, cmd=None, env=None):
+ if not env: env = {}
if cmd == None: cmd=cap
return {
'capname': cap,