summaryrefslogtreecommitdiff
path: root/lib/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-04 01:50:30 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-04 01:50:30 +0000
commit5bb05c995916a21cc7fdc4c3776bc61a15cc15cb (patch)
tree098c0a2e7f94e6c744a2fa4fcbf9e959b1c1d157 /lib/rbot
parent48bb247cfbf4062bd5f4fbb0abe8575b7a888189 (diff)
New Auth Framework: transient netmask finetuning
Diffstat (limited to 'lib/rbot')
-rw-r--r--lib/rbot/botuser.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/botuser.rb b/lib/rbot/botuser.rb
index c0cbfa47..c3e4c18e 100644
--- a/lib/rbot/botuser.rb
+++ b/lib/rbot/botuser.rb
@@ -264,7 +264,7 @@ module Irc
if @transient and User === m
mask.nick = "*"
mask.host = m.host.dup
- mask.user = "*" + m.user.sub(/^[^\w]+/,'')
+ mask.user = "*" + m.user.sub(/^\w?[^\w]+/,'')
end
add_netmask(mask) unless mask.to_s == "*"
}