diff options
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(); |