summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-04 01:50:24 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-04 01:50:24 +0000
commit1723c9f3bba1f3d7f5d6ccec9a8a4d5f36347344 (patch)
tree7bbc65dea0ffe5b6761558f9c495ff1deed724f7 /lib
parent0ca92a5b8a50a2dab83f4846379c63885436e90e (diff)
New Irc Framework: ident methods synonyms for user for Irc::Netmask
Diffstat (limited to 'lib')
-rw-r--r--lib/rbot/irc.rb2
1 files changed, 2 insertions, 0 deletions
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.