diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-24 03:29:58 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-24 03:29:58 +0000 |
commit | b868bb52c55fc902e0acab3c4a43576826817e85 (patch) | |
tree | ee67ec4b764846b9f43b064c9c4667ca70192e57 /src/modes/cmode_h.cpp | |
parent | b16e16ac1bae4ac5494778b4b8a7009febb58137 (diff) |
Get rid of ModePair
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11963 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modes/cmode_h.cpp')
-rw-r--r-- | src/modes/cmode_h.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/modes/cmode_h.cpp b/src/modes/cmode_h.cpp index 9ca050de2..0b0f0b700 100644 --- a/src/modes/cmode_h.cpp +++ b/src/modes/cmode_h.cpp @@ -32,24 +32,6 @@ unsigned int ModeChannelHalfOp::GetPrefixRank() return HALFOP_VALUE; } -ModePair ModeChannelHalfOp::ModeSet(User*, User*, Channel* channel, const std::string ¶meter) -{ - User* x = ServerInstance->FindNick(parameter); - if (x) - { - Membership* memb = channel->GetUser(x); - if (memb && memb->hasMode('h')) - { - return std::make_pair(true, x->nick); - } - else - { - return std::make_pair(false, x->nick); - } - } - return std::make_pair(false, parameter); -} - void ModeChannelHalfOp::RemoveMode(Channel* channel, irc::modestacker* stack) { const UserMembList* clist = channel->GetUsers(); |