From 0d528d46751585eae11510a772b77d241f3c7777 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Wed, 11 Apr 2007 21:28:33 +0000 Subject: New IRC Framework: fix critical bug in Irc::Netmask to Regexp conversion --- lib/rbot/irc.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3