diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-04-11 21:28:33 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-04-11 21:28:33 +0000 |
commit | 0d528d46751585eae11510a772b77d241f3c7777 (patch) | |
tree | 72fa543cd07b2f56a74f1dc84ddde4c1df2546b1 | |
parent | 053eb36e834429af37555e7506ef3c6162ea4648 (diff) |
New IRC Framework: fix critical bug in Irc::Netmask to Regexp conversion
-rw-r--r-- | lib/rbot/irc.rb | 2 |
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
|