summaryrefslogtreecommitdiff
path: root/lib/rbot/irc.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-12-14 11:18:54 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-12-14 11:18:54 +0000
commita4094acbec334dbc9c17abcbff6a87711fc6d78c (patch)
tree142cf3574ff5b2cc9947681be596bb8b7441802a /lib/rbot/irc.rb
parentd95ea514d1e93e7b8691f479448e7d57bf108192 (diff)
maskdb: be case insenstive
Diffstat (limited to 'lib/rbot/irc.rb')
-rw-r--r--lib/rbot/irc.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/rbot/irc.rb b/lib/rbot/irc.rb
index 78c154ec..f3a904e7 100644
--- a/lib/rbot/irc.rb
+++ b/lib/rbot/irc.rb
@@ -671,6 +671,12 @@ module Irc
self.full_irc_downcase
end
+ # This method returns a new Netmask which is the fully downcased version
+ # of the receiver
+ def downcased
+ return self.full_downcase.to_irc_netmask(server_and_casemap)
+ end
+
# Converts the receiver into a Netmask with the given (optional)
# server/casemap association. We return self unless a conversion
# is needed (different casemap/server)