summaryrefslogtreecommitdiff
path: root/lib/rbot/irc.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-12-07 13:00:18 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-12-07 13:00:18 +0000
commitedbec382c5c1955cd1d9ccd8b72b423aff87e791 (patch)
tree82332eb36e5f904e3ce0b6333b7e44f8ad7810a3 /lib/rbot/irc.rb
parentfc53135ae5098d9c6b261a03b65d44db8d035724 (diff)
New Irc Framework: netmask generalization now takes into consideration AzzurraNet host shadowing
Diffstat (limited to 'lib/rbot/irc.rb')
-rw-r--r--lib/rbot/irc.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rbot/irc.rb b/lib/rbot/irc.rb
index 9ce57816..78c154ec 100644
--- a/lib/rbot/irc.rb
+++ b/lib/rbot/irc.rb
@@ -772,6 +772,7 @@ module Irc
h.sub!(/x-\w+$/, 'x-*')
else
h.match(/^[^\.]+\.[^\.]+$/) or
+ h.sub!(/azzurra[=-][0-9a-f]+/i, '*') or # hello, azzurra, you suck!
h.sub!(/^(\d+\.\d+\.\d+\.)\d+$/, '\1*') or
h.sub!(/^[^\.]+\./, '*.')
end