summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-05-06 17:48:22 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-05-06 17:48:22 +0200
commitd42f27ccbafc1d019656a1be1f93b7b24e5e21ee (patch)
tree064a5981f723c24fb8f938a09056d2b34ee92553
parent834758616bf9e872c1a93dde83906cae9f893ee6 (diff)
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.
-rw-r--r--lib/rbot/ircbot.rb7
1 files changed, 6 insertions, 1 deletions
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