X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_customprefix.cpp;h=97c2e697d98e8c85457737e1c79d84886facd480;hb=551d687ec6d7ce44be35fae0dd7345fe73c4f63a;hp=fd89f565d8a5b53b1558612beefa2b91736773a1;hpb=73598f496d9f9cbcc886a87cc96f42e25c8ce531;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_customprefix.cpp b/src/modules/m_customprefix.cpp index fd89f565d..97c2e697d 100644 --- a/src/modules/m_customprefix.cpp +++ b/src/modules/m_customprefix.cpp @@ -1,16 +1,22 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ +/* + * InspIRCd -- Internet Relay Chat Daemon * - * InspIRCd: (C) 2002-2009 InspIRCd Development Team - * See: http://wiki.inspircd.org/Credits + * Copyright (C) 2010 Daniel De Graaf * - * This program is free but copyrighted software; see - * the file COPYING for details. + * This file is part of InspIRCd. InspIRCd is free software: you can + * redistribute it and/or modify it under the terms of the GNU General Public + * License as published by the Free Software Foundation, version 2. * - * --------------------------------------------------- + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ + #include "inspircd.h" /* $ModDesc: Allows custom prefix modes to be created. */ @@ -53,7 +59,7 @@ class CustomPrefixMode : public ModeHandler std::vector mode_junk; mode_junk.push_back(channel->name); irc::modestacker modestack(false); - std::deque stackresult; + std::vector stackresult; for (UserMembCIter i = cl->begin(); i != cl->end(); i++) { @@ -91,10 +97,6 @@ class ModuleCustomPrefix : public Module { std::vector modes; public: - ModuleCustomPrefix() - { - } - void init() { ConfigTagList tags = ServerInstance->Config->ConfTags("customprefix");