From 26d56f6f09962fd2a322978cb22466f29d123c7b 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 --- IRC/asybot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IRC/asybot.py b/IRC/asybot.py index 6d19fd0..31af28d 100755 --- a/IRC/asybot.py +++ b/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 d8dcd0edb7adeac0f375e57b365da588971a5da2 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 --- IRC/asybot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/IRC/asybot.py b/IRC/asybot.py index 31af28d..89967c3 100755 --- a/IRC/asybot.py +++ b/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 From d60639df098585c841ed2318ee13af2335f11a76 Mon Sep 17 00:00:00 2001 From: lassulus Date: Wed, 18 Dec 2013 18:01:35 +0100 Subject: Reaktor/IRC: removed TODO, unsolvable --- TODO | 1 - 1 file changed, 1 deletion(-) diff --git a/TODO b/TODO index 6dbc2f8..f8958b7 100644 --- a/TODO +++ b/TODO @@ -1,6 +1,5 @@ { "pattern": "^(?:asybot|\\*):.*", "argv": [ "commands/say", "{{from.nickname}}: you are made of stupid" ], only_match: true } -getconf: check syntax and semantics on load getconf: reload inotify apropros caps: commands need access to config -- cgit v1.2.3 From a6e8694560070f1666909cd054e0c3a775f121c0 Mon Sep 17 00:00:00 2001 From: lassulus Date: Wed, 18 Dec 2013 18:02:36 +0100 Subject: Reaktor/IRC: TODO done --- TODO | 2 -- 1 file changed, 2 deletions(-) diff --git a/TODO b/TODO index f8958b7..782a724 100644 --- a/TODO +++ b/TODO @@ -1,5 +1,3 @@ -{ "pattern": "^(?:asybot|\\*):.*", "argv": [ "commands/say", "{{from.nickname}}: you are made of stupid" ], only_match: true } - getconf: reload inotify apropros caps: commands need access to config -- cgit v1.2.3