From 3c1535820d6faf09577221068d27be788483f8e8 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Tue, 31 Jul 2007 21:06:39 +0000 Subject: New IRC Framework: store a User's real_name --- lib/rbot/irc.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/rbot/irc.rb') 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. -- cgit v1.2.3