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/modules/m_invisible.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_invisible.cpp') diff --git a/src/modules/m_invisible.cpp b/src/modules/m_invisible.cpp index 29b741425..ee6334f5e 100644 --- a/src/modules/m_invisible.cpp +++ b/src/modules/m_invisible.cpp @@ -98,11 +98,11 @@ class InvisibleMode : public ModeHandler for (CUList::iterator i = ulist->begin(); i != ulist->end(); i++) { /* User only appears to vanish for non-opers */ - if (IS_LOCAL(i->second) && !IS_OPER(i->second)) + if (IS_LOCAL(i->first) && !IS_OPER(i->first)) { - i->second->Write(out); + i->first->Write(out); if (!n.empty() && !adding) - i->second->WriteServ("MODE %s +%s", f->first->name, n.c_str()); + i->first->WriteServ("MODE %s +%s", f->first->name, n.c_str()); } } -- cgit v1.2.3