X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcommands%2Fcmd_modenotice.cpp;h=852b72f6aab1e35dd23756691976b88dfc4b1448;hb=8f27fefa75e2952e7ab8757eb9fe4af4586817f0;hp=d466ee2d1c714c32254ef1f6e87cb0ea365e4447;hpb=516da6a00f6c45171eec385bd8b1bd1f1f88cc32;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/commands/cmd_modenotice.cpp b/src/commands/cmd_modenotice.cpp index d466ee2d1..852b72f6a 100644 --- a/src/commands/cmd_modenotice.cpp +++ b/src/commands/cmd_modenotice.cpp @@ -1,16 +1,22 @@ -/* +------------------------------------+ - * | 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 @@ -25,7 +31,7 @@ class CommandModeNotice : public Command 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++)