summaryrefslogtreecommitdiff
path: root/lib/rbot
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbot')
-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