From 5bb05c995916a21cc7fdc4c3776bc61a15cc15cb Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Tue, 4 Sep 2007 01:50:30 +0000 Subject: New Auth Framework: transient netmask finetuning --- lib/rbot/botuser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rbot') 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 == "*" } -- cgit v1.2.3