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_chanprotect.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/modules/m_chanprotect.cpp') diff --git a/src/modules/m_chanprotect.cpp b/src/modules/m_chanprotect.cpp index 3f44fd93e..81cf34c0c 100644 --- a/src/modules/m_chanprotect.cpp +++ b/src/modules/m_chanprotect.cpp @@ -88,9 +88,9 @@ class FounderProtectBase std::deque stackresult; for (CUList::iterator i = cl->begin(); i != cl->end(); i++) { - if (i->second->GetExt(item, dummyptr)) + if (i->first->GetExt(item, dummyptr)) { - modestack.Push(mc, i->second->nick); + modestack.Push(mc, i->first->nick); } } @@ -113,9 +113,9 @@ class FounderProtectBase std::string item = extend+std::string(channel->name); for (CUList::iterator i = cl->begin(); i != cl->end(); i++) { - if (i->second->GetExt(item, dummyptr)) + if (i->first->GetExt(item, dummyptr)) { - user->WriteServ("%d %s %s %s", list, user->nick, channel->name,i->second->nick); + user->WriteServ("%d %s %s %s", list, user->nick, channel->name,i->first->nick); } } user->WriteServ("%d %s %s :End of channel %s list", end, user->nick, channel->name, type.c_str()); @@ -508,13 +508,13 @@ class ModuleChanProtect : public Module std::deque stackresult; for (CUList::iterator i = cl->begin(); i != cl->end(); i++) { - if (i->second->GetExt(founder,dummyptr)) + if (i->first->GetExt(founder,dummyptr)) { - modestack.Push('q',i->second->nick); + modestack.Push('q',i->first->nick); } - if (i->second->GetExt(protect,dummyptr)) + if (i->first->GetExt(protect,dummyptr)) { - modestack.Push('a',i->second->nick); + modestack.Push('a',i->first->nick); } } while (modestack.GetStackedLine(stackresult)) -- cgit v1.2.3