From b868bb52c55fc902e0acab3c4a43576826817e85 Mon Sep 17 00:00:00 2001 From: danieldg Date: Sat, 24 Oct 2009 03:29:58 +0000 Subject: Get rid of ModePair git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11963 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modes/cmode_o.cpp | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'src/modes/cmode_o.cpp') diff --git a/src/modes/cmode_o.cpp b/src/modes/cmode_o.cpp index 1bab9db26..e706302dc 100644 --- a/src/modes/cmode_o.cpp +++ b/src/modes/cmode_o.cpp @@ -32,25 +32,6 @@ unsigned int ModeChannelOp::GetPrefixRank() return OP_VALUE; } -ModePair ModeChannelOp::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('o')) - { - return std::make_pair(true, x->nick); - } - else - { - return std::make_pair(false, parameter); - } - } - return std::make_pair(false, parameter); -} - - void ModeChannelOp::RemoveMode(Channel* channel, irc::modestacker* stack) { const UserMembList* clist = channel->GetUsers(); -- cgit v1.2.3