From e957c40e5ad65c3088454ef0463d7ae42452196b Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 25 Apr 2014 12:52:05 +0200 Subject: reaktor getconf: allow default_value --- IRC/reaktor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'IRC/reaktor.py') diff --git a/IRC/reaktor.py b/IRC/reaktor.py index b53ef65..54091c5 100755 --- a/IRC/reaktor.py +++ b/IRC/reaktor.py @@ -36,7 +36,7 @@ class Reaktor(asybot): return False def on_join(self, prefix, command, params, rest): - for command in getconf('on_join'): + for command in getconf('on_join', []): self.execute_command(command, None, prefix, params) def on_privmsg(self, prefix, command, params, rest): -- cgit v1.2.3 From 97e2b11759fe3066b3d12bb9d47c981959c3cde8 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 25 Apr 2014 13:34:04 +0200 Subject: reaktor: move config_filename to config --- IRC/reaktor.py | 1 - 1 file changed, 1 deletion(-) (limited to 'IRC/reaktor.py') diff --git a/IRC/reaktor.py b/IRC/reaktor.py index 54091c5..bfd08d9 100755 --- a/IRC/reaktor.py +++ b/IRC/reaktor.py @@ -81,7 +81,6 @@ class Reaktor(asybot): target.append(env['_from']) log.debug('target:' +str(target)) - env['config_filename'] = os.path.abspath(self.config) start = time() try: p = popen(myargv, bufsize=1, stdout=PIPE, stderr=PIPE, env=env, cwd=cwd) -- cgit v1.2.3