From d42f27ccbafc1d019656a1be1f93b7b24e5e21ee Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Wed, 6 May 2009 17:48:22 +0200 Subject: ircbot: reinstante @bot.channels When the new IRC framework was introduced, the old @channels Hash and its accessor for @bot were dismissed. Reintroduce it for backwards compatibility. --- lib/rbot/ircbot.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb index 35fc2dfd..70be2a90 100644 --- a/lib/rbot/ircbot.rb +++ b/lib/rbot/ircbot.rb @@ -211,11 +211,16 @@ class Bot @client.user end - # bot User in the client/server connection + # bot nick in the client/server connection def nick myself.nick end + # bot channels in the client/server connection + def channels + myself.channels + end + # nick wanted by the bot. This defaults to the irc.nick config value, # but may be overridden by a manual !nick command def wanted_nick -- cgit v1.2.3