From 2303fb11a12715aaefcf227172c437cc0e6da9cf Mon Sep 17 00:00:00 2001 From: lassulus Date: Wed, 18 Dec 2013 17:58:05 +0100 Subject: Reaktor/IRC: reading kill_timeout from config --- Reaktor/IRC/asybot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Reaktor/IRC') diff --git a/Reaktor/IRC/asybot.py b/Reaktor/IRC/asybot.py index 6d19fd09..31af28d2 100755 --- a/Reaktor/IRC/asybot.py +++ b/Reaktor/IRC/asybot.py @@ -54,7 +54,7 @@ class asybot(asychat): # passed without a message. Any incoming message will reset alarm. self.alarm_timeout = getconf('irc_alarm_timeout') self.hammer_interval = getconf('irc_hammer_interval') - self.kill_timeout = 360 + self.kill_timeout = getconf('irc_kill_timeout') signal(SIGALRM, lambda signum, frame: self.alarm_handler()) self.reset_alarm() -- cgit v1.2.3 From 9c04a22503d01763424db7119a3206c89b43cd78 Mon Sep 17 00:00:00 2001 From: lassulus Date: Wed, 18 Dec 2013 17:58:40 +0100 Subject: Reaktor/IRC: match only one pattern --- Reaktor/IRC/asybot.py | 1 + 1 file changed, 1 insertion(+) (limited to 'Reaktor/IRC') diff --git a/Reaktor/IRC/asybot.py b/Reaktor/IRC/asybot.py index 31af28d2..89967c3f 100755 --- a/Reaktor/IRC/asybot.py +++ b/Reaktor/IRC/asybot.py @@ -129,6 +129,7 @@ class asybot(asychat): y = match(command['pattern'], rest) if y: self.execute_command(command, y, PRIVMSG, ME) + break def execute_command(self, command, match, PRIVMSG, ME): from os.path import realpath, dirname, join -- cgit v1.2.3