From b9d60ee1a0eedc17c2dc16c73f8ed0f6809de5a0 Mon Sep 17 00:00:00 2001 From: juhulian Date: Wed, 9 Apr 2014 10:30:03 +0200 Subject: add on_join --- Reaktor/IRC/ircasy.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Reaktor/IRC/ircasy.py b/Reaktor/IRC/ircasy.py index 068cd467..b40913ce 100644 --- a/Reaktor/IRC/ircasy.py +++ b/Reaktor/IRC/ircasy.py @@ -113,6 +113,9 @@ class asybot(asychat): elif command == 'KICK': self.on_kick(prefix, command, params, rest) + elif command == 'JOIN': + self.on_join(prefix, command, params, rest)) + elif command == '433': # ERR_NICKNAMEINUSE, retry with another name self.on_nickinuse(prefix, command, params, rest) @@ -169,6 +172,9 @@ class asybot(asychat): for chan in params[:-1]: self.channels.remove(chan) + def on_join(self, prefix, command, params, rest): + pass + def on_privmsg(self, prefix, command, params, rest): pass -- cgit v1.2.3 From a2de1edca2b3bdfb437c295a446817ef3a42a123 Mon Sep 17 00:00:00 2001 From: juhulian Date: Wed, 9 Apr 2014 10:37:59 +0200 Subject: fix bracket by on_join --- Reaktor/IRC/ircasy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Reaktor/IRC/ircasy.py b/Reaktor/IRC/ircasy.py index b40913ce..9a7f44f3 100644 --- a/Reaktor/IRC/ircasy.py +++ b/Reaktor/IRC/ircasy.py @@ -114,7 +114,7 @@ class asybot(asychat): self.on_kick(prefix, command, params, rest) elif command == 'JOIN': - self.on_join(prefix, command, params, rest)) + self.on_join(prefix, command, params, rest) elif command == '433': # ERR_NICKNAMEINUSE, retry with another name -- cgit v1.2.3