From ce533b67e6c58c02f25b2f26214ab9cd2c7c99b6 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 10 May 2007 00:26:04 +0000 Subject: Small api change with wide reaching effects in modules - Allows modification of whats displayed by NAMES on a per-nick basis, so we can have UHNAMES in a seperate module to NAMESX (and possibly do some funky other stuff in the future too!) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6934 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_who.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/cmd_who.cpp') diff --git a/src/cmd_who.cpp b/src/cmd_who.cpp index 5992d7aa0..ff29447fb 100644 --- a/src/cmd_who.cpp +++ b/src/cmd_who.cpp @@ -259,14 +259,14 @@ CmdResult cmd_who::Handle (const char** parameters, int pcnt, userrec *user) for (CUList::iterator i = cu->begin(); i != cu->end(); i++) { /* opers only, please */ - if (opt_viewopersonly && !IS_OPER(i->second)) + if (opt_viewopersonly && !IS_OPER(i->first)) continue; /* If we're not inside the channel, hide +i users */ - if (i->second->IsModeSet('i') && !inside) + if (i->first->IsModeSet('i') && !inside) continue; - SendWhoLine(user, initial, ch, i->second, whoresults); + SendWhoLine(user, initial, ch, i->first, whoresults); } } } -- cgit v1.2.3