From 58a37c3bfbe647a4de263e800e1274ef95253752 Mon Sep 17 00:00:00 2001 From: Laurent Bachelier Date: Sat, 13 Apr 2013 23:14:57 +0200 Subject: [PATCH] boobot: irc 5.0+ compatibility It should still work with older versions --- contrib/boobot.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/contrib/boobot.py b/contrib/boobot.py index 810dcd4e..c0d58308 100755 --- a/contrib/boobot.py +++ b/contrib/boobot.py @@ -105,7 +105,11 @@ class TestBot(SingleServerIRCBot): self.connection.privmsg(self.channel, msg) def on_pubmsg(self, c, event): - text = ' '.join(event.arguments()) + # irclib 5.0 compatibility + if callable(event.arguments): + text = ' '.join(event.arguments()) + else: + text = ' '.join(event.arguments) for m in re.findall('([\w\d_\-]+@\w+)', text): id, backend_name = m.split('@', 1) if backend_name in self.weboob.backend_instances: