summaryrefslogtreecommitdiff
path: root/lib/rbot/rfc2812.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-03-05 21:59:51 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-03-05 21:59:51 +0000
commit90671f2fe2dded0e1423dee33d073c6531b02b41 (patch)
tree7e15f178c0c0edd0cddada086a4ee125b48f5139 /lib/rbot/rfc2812.rb
parentd8a22eb45b2fd816319a58786d18cf00b4b16031 (diff)
Previous commit wasn't that good, too restrictive. Relax, and differentiate between user id and mask
Diffstat (limited to 'lib/rbot/rfc2812.rb')
-rw-r--r--lib/rbot/rfc2812.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/rfc2812.rb b/lib/rbot/rfc2812.rb
index efa50035..1ab981f8 100644
--- a/lib/rbot/rfc2812.rb
+++ b/lib/rbot/rfc2812.rb
@@ -902,7 +902,7 @@ module Irc
# This is not always true, though, since some servers do not send a
# full hostmask for user messages.
#
- if prefix =~ /^#{Regexp::Irc::GEN_MASK}$/
+ if prefix =~ /^#{Regexp::Irc::GEN_USER_ID}$/
data[:source] = @server.user(prefix)
else
if @server.hostname