summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-08-17 13:57:40 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-08-17 13:57:40 +0000
commit65a0f65101a02248d90d09432bf68f2e48187f07 (patch)
treeee91b23de23f454941e93f6f1ace999f7c1c0ff3 /lib
parent570d8535619cf3a9d20ca3d72e5176db2c4c8223 (diff)
Adapt topic plugin to new IRC framework
Diffstat (limited to 'lib')
-rw-r--r--lib/rbot/irc.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/rbot/irc.rb b/lib/rbot/irc.rb
index 8ef55712..0cb3c472 100644
--- a/lib/rbot/irc.rb
+++ b/lib/rbot/irc.rb
@@ -1020,6 +1020,10 @@ module Irc
attr_reader :name, :topic, :mode, :users
alias :to_s :name
+ def downcase
+ self.to_s.irc_downcase(self.casemap)
+ end
+
def inspect
str = "<#{self.class}:#{'0x%x' % self.object_id}:"
str << " on server #{server}" if server