diff options
author | makefu <github@syntax-fehler.de> | 2014-07-15 15:22:03 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2014-07-15 15:22:03 +0200 |
commit | bae95b3f9e926e381fe429a182f232e9a6c0b857 (patch) | |
tree | 4a36affc350be40c933272110c2c9ebe94d0cc06 /Reaktor/IRC/reaktor.py | |
parent | 058d1fcf51ad6cf7c6b334ac2cac4408b168d0d7 (diff) | |
parent | de8c7b0950103fed60ce15e8474a270e96c688ad (diff) |
Merge branch 'master' of ssh://github.com/krebscode/painload
Diffstat (limited to 'Reaktor/IRC/reaktor.py')
-rwxr-xr-x | Reaktor/IRC/reaktor.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Reaktor/IRC/reaktor.py b/Reaktor/IRC/reaktor.py index 9a3424a6..799fe555 100755 --- a/Reaktor/IRC/reaktor.py +++ b/Reaktor/IRC/reaktor.py @@ -39,6 +39,12 @@ class Reaktor(asybot): for command in getconf('on_join', []): self.execute_command(command, None, prefix, params) + def on_ping(self, prefix, command, params, rest): + for command in getconf('on_ping', []): + prefix = '!' # => env = { _prefix: '!', _from: '' } + params = command.get('targets') # TODO why don't we get a list here and use ','.join() ? + self.execute_command(command, None, prefix, params) + def on_privmsg(self, prefix, command, params, rest): for command in getconf('commands'): y = match(command['pattern'], rest) |