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_b.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/modes/cmode_b.cpp') diff --git a/src/modes/cmode_b.cpp b/src/modes/cmode_b.cpp index 477d87544..b2b3f3c6f 100644 --- a/src/modes/cmode_b.cpp +++ b/src/modes/cmode_b.cpp @@ -141,18 +141,6 @@ std::string& ModeChannelBan::AddBan(User *user, std::string &dest, Channel *chan return dest; } -ModePair ModeChannelBan::ModeSet(User*, User*, Channel* channel, const std::string ¶meter) -{ - for (BanList::iterator i = channel->bans.begin(); i != channel->bans.end(); i++) - { - if (!strcasecmp(i->data.c_str(), parameter.c_str())) - { - return std::make_pair(true, i->data); - } - } - return std::make_pair(false, parameter); -} - std::string& ModeChannelBan::DelBan(User *user, std::string& dest, Channel *chan, int) { if ((!user) || (!chan)) -- cgit v1.2.3