diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-08-22 20:42:19 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-08-22 20:42:19 +0000 |
commit | 5314582f0fca77520d73ce21f9d05a10f10daa6b (patch) | |
tree | ec5d0ac5baa9ef1f6da7c604555eb5b9d8e2be55 /lib | |
parent | c4502412f30f69c1ffa053b160e01d3974b338aa (diff) |
New Irc Framework: optimize Channel#has_user?()
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rbot/irc.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/irc.rb b/lib/rbot/irc.rb index 852cc6df..129f947e 100644 --- a/lib/rbot/irc.rb +++ b/lib/rbot/irc.rb @@ -1275,7 +1275,7 @@ module Irc # Checks if the receiver already has a user with the given _nick_
#
def has_user?(nick)
- user_nicks.index(nick.irc_downcase(casemap))
+ @users.index(nick.to_irc_user(server_and_casemap))
end
# Returns the user with nick _nick_, if available
|