From 5314582f0fca77520d73ce21f9d05a10f10daa6b Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Wed, 22 Aug 2007 20:42:19 +0000 Subject: New Irc Framework: optimize Channel#has_user?() --- lib/rbot/irc.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rbot/irc.rb') 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 -- cgit v1.2.3