diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rbot/irc.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/rbot/irc.rb b/lib/rbot/irc.rb index 0edfb35a..efc71c39 100644 --- a/lib/rbot/irc.rb +++ b/lib/rbot/irc.rb @@ -885,6 +885,8 @@ module Irc class User < Netmask
alias :to_s :nick
+ attr :real_name
+
# Create a new IRC User from a given Netmask (or anything that can be converted
# into a Netmask) provided that the given Netmask does not have globs.
#
@@ -894,6 +896,7 @@ module Irc raise ArgumentError, "#{str.inspect} must not have globs (unescaped * or ?)" if user.has_irc_glob? && user != "*"
raise ArgumentError, "#{str.inspect} must not have globs (unescaped * or ?)" if host.has_irc_glob? && host != "*"
@away = false
+ @real_name = String.new
end
# The nick of a User may be changed freely, but it must not contain glob patterns.
|