X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcommands%2Fcmd_modenotice.cpp;h=852b72f6aab1e35dd23756691976b88dfc4b1448;hb=ad8625919378ffbdbf0993d56e16a75a47c4715e;hp=359474a356917b6f70099df55bee56bc3c8512e9;hpb=cd712c40e1b352c05e7ae0f72e0a5e84cdf64323;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/commands/cmd_modenotice.cpp b/src/commands/cmd_modenotice.cpp index 359474a35..852b72f6a 100644 --- a/src/commands/cmd_modenotice.cpp +++ b/src/commands/cmd_modenotice.cpp @@ -1,27 +1,37 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ +/* + * InspIRCd -- Internet Relay Chat Daemon * - * InspIRCd: (C) 2002-2010 InspIRCd Development Team - * See: http://wiki.inspircd.org/Credits + * Copyright (C) 2009 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" class CommandModeNotice : public Command { public: - CommandModeNotice(Module* parent) : Command(parent,"MODENOTICE",2,2) { syntax = " "; } + CommandModeNotice(Module* parent) : Command(parent,"MODENOTICE",2,2) + { + syntax = " "; + flags_needed = 'o'; + } CmdResult Handle(const std::vector& parameters, User *src) { int mlen = parameters[0].length(); - for (std::vector::const_iterator i = ServerInstance->Users->local_users.begin(); i != ServerInstance->Users->local_users.end(); i++) + for (LocalUserList::const_iterator i = ServerInstance->Users->local_users.begin(); i != ServerInstance->Users->local_users.end(); i++) { User* user = *i; for (int n = 0; n < mlen; n++)