summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-04-11 21:28:33 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-04-11 21:28:33 +0000
commit0d528d46751585eae11510a772b77d241f3c7777 (patch)
tree72fa543cd07b2f56a74f1dc84ddde4c1df2546b1 /lib
parent053eb36e834429af37555e7506ef3c6162ea4648 (diff)
New IRC Framework: fix critical bug in Irc::Netmask to Regexp conversion
Diffstat (limited to 'lib')
-rw-r--r--lib/rbot/irc.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/irc.rb b/lib/rbot/irc.rb
index 398f74d1..f34c8f9b 100644
--- a/lib/rbot/irc.rb
+++ b/lib/rbot/irc.rb
@@ -321,7 +321,7 @@ class String
raise "Unexpected match #{m} when converting #{self}"
end
}
- Regexp.new(regmask)
+ Regexp.new("^#{regmask}$")
end
end