From aaf5226111f515f4baa68e95ea6a1db740828ac3 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 8 Mar 2006 23:16:18 +0000 Subject: Removed has_channel(userrec*,chanrec*), the new preferred way of doing it is channel->HasUser(userrec) Yeah its the other way around to the old way, but somehow, seems less backwards to me (its also faster) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3560 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_who.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd_who.cpp') diff --git a/src/cmd_who.cpp b/src/cmd_who.cpp index d82b7906f..c25fa611d 100644 --- a/src/cmd_who.cpp +++ b/src/cmd_who.cpp @@ -115,7 +115,7 @@ void cmd_who::Handle (char **parameters, int pcnt, userrec *user) int n_list = 0; for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++) { - if ((has_channel(i->second,Ptr)) && (isnick(i->second->nick))) + if ((Ptr->HasUser(i->second)) && (isnick(i->second->nick))) { // Fix Bug #29 - Part 2.. *tmp = 0; -- cgit v1.3.1-10-gc9f91