* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
- * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
- * E-mail:
- * <brain@chatspike.net>
- * <Craig@chatspike.net>
- *
- * Written by Craig Edwards, Craig McLure, and others.
+ * InspIRCd: (C) 2002-2007 InspIRCd Development Team
+ * See: http://www.inspircd.org/wiki/index.php/Credits
+ *
* This program is free but copyrighted software; see
- * the file COPYING for details.
+ * the file COPYING for details.
*
* ---------------------------------------------------
*/
-using namespace std;
-
#include "inspircd.h"
#include "users.h"
#include "modules.h"
else
{
user->WriteServ("502 %s :Can't change mode for other users", user->nick);
+ return;
}
}
userrec* targetuser = ServerInstance->FindNick(parameters[0]);
ServerInstance->Log(DEBUG,"ModeParser::Process start: pcnt=%d",pcnt);
- for (int j = 0; j < pcnt; j++)
- ServerInstance->Log(DEBUG," parameters[%d] = '%s'", j, parameters[j]);
LastParse = "";
{
unsigned char modechar = *letter;
- ServerInstance->Log(DEBUG,"Process letter %c", modechar);
-
switch (modechar)
{
/* NB:
switch (mh->GetModeType())
{
case MODETYPE_USER:
- for (user_hash::iterator i = ServerInstance->clientlist.begin(); i != ServerInstance->clientlist.end(); i++)
+ for (user_hash::iterator i = ServerInstance->clientlist->begin(); i != ServerInstance->clientlist->end(); i++)
{
mh->RemoveMode(i->second);
}
break;
case MODETYPE_CHANNEL:
- for (chan_hash::iterator i = ServerInstance->chanlist.begin(); i != ServerInstance->chanlist.end(); i++)
+ for (chan_hash::iterator i = ServerInstance->chanlist->begin(); i != ServerInstance->chanlist->end(); i++)
{
mh->RemoveMode(i->second);
}