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_k.cpp | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/modes/cmode_k.cpp') diff --git a/src/modes/cmode_k.cpp b/src/modes/cmode_k.cpp index 5b273cdd1..d8b04b576 100644 --- a/src/modes/cmode_k.cpp +++ b/src/modes/cmode_k.cpp @@ -21,19 +21,6 @@ ModeChannelKey::ModeChannelKey() : ModeHandler(NULL, "key", 'k', PARAM_ALWAYS, M { } -ModePair ModeChannelKey::ModeSet(User*, User*, Channel* channel, const std::string ¶meter) -{ - if (channel->modes[CM_KEY]) - { - std::string ckey = channel->GetModeParameter('k'); - return std::make_pair(true, ckey); - } - else - { - return std::make_pair(false, parameter); - } -} - void ModeChannelKey::RemoveMode(Channel* channel, irc::modestacker* stack) { /** +k needs a parameter when being removed, -- cgit v1.2.3