diff options
author | tv <tv@nomic.retiolum> | 2013-12-18 18:24:48 +0100 |
---|---|---|
committer | tv <tv@nomic.retiolum> | 2013-12-18 18:28:15 +0100 |
commit | ba50d1a587b9fcef21bce621757514022284b146 (patch) | |
tree | ef764c3d49e8757c32d51b548a910ccf0921a834 /Reaktor | |
parent | cf60629422036cf3d8d6e10b086eb600cd16c975 (diff) | |
parent | 6ab529502210751f89c832558e2db26c2ade36ab (diff) |
Merge branch 'master' of https://github.com/krebscode/painload
Diffstat (limited to 'Reaktor')
-rwxr-xr-x | Reaktor/IRC/asybot.py | 3 | ||||
-rw-r--r-- | Reaktor/TODO | 3 | ||||
-rw-r--r-- | Reaktor/config.py | 2 |
3 files changed, 3 insertions, 5 deletions
diff --git a/Reaktor/IRC/asybot.py b/Reaktor/IRC/asybot.py index 6d19fd09..89967c3f 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() @@ -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 diff --git a/Reaktor/TODO b/Reaktor/TODO index 6dbc2f8d..782a7248 100644 --- a/Reaktor/TODO +++ b/Reaktor/TODO @@ -1,6 +1,3 @@ -{ "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 diff --git a/Reaktor/config.py b/Reaktor/config.py index 8e7a8790..ec4abcb1 100644 --- a/Reaktor/config.py +++ b/Reaktor/config.py @@ -31,6 +31,6 @@ irc_commands = [ { 'pattern': '^(?:' + name + '|\\*):.*', 'argv': [ 'commands/say', '{TODO:fromname}: you are made of stupid!' ] }, # "highlight" - { 'pattern': '\\b' + name + '\\b', + { 'pattern': '.*\\b' + name + '\\b.*', 'argv': [ 'commands/say', 'I\'m famous' ] } ] |