From 1723c9f3bba1f3d7f5d6ccec9a8a4d5f36347344 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Tue, 4 Sep 2007 01:50:24 +0000 Subject: New Irc Framework: ident methods synonyms for user for Irc::Netmask --- lib/rbot/irc.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/rbot/irc.rb b/lib/rbot/irc.rb index ed0b47f8..c0fdff4b 100644 --- a/lib/rbot/irc.rb +++ b/lib/rbot/irc.rb @@ -594,6 +594,7 @@ module Irc include ServerOrCasemap attr_reader :nick, :user, :host + alias :ident :user # Create a new Netmask from string _str_, which must be in the form # _nick_!_user_@_host_ @@ -718,6 +719,7 @@ module Irc @user = newuser.to_s @user = "*" if @user.empty? end + alias :ident= :user= # This method changes the hostname of the Netmask, defaulting to the generic # glob pattern if the result is the null string. -- cgit v1.2.3