-#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd: (C) 2002-2008 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.
+ *
+ * ---------------------------------------------------
+ */
+#include "inspircd.h"
#include <set>
-
#include <sstream>
-
#include <algorithm>
/* $ModDesc: Implementation of callerid (umode +g & /accept, ala hybrid etc) */
{
std::ostringstream oss;
oss << lastnotify;
- for (std::set<User*>::iterator i = accepting.begin(); i != accepting.end(); ++i)
+ for (std::set<User*>::const_iterator i = accepting.begin(); i != accepting.end(); ++i)
{
// Encode UIDs.
oss << "," << (displayable ? (*i)->nick : (*i)->uuid);
return CMD_SUCCESS;
/* Even if callerid mode is not set, we let them manage their ACCEPT list so that if they go +g they can
* have a list already setup. */
- bool atleastonechange = false;
+
+ std::string tok = parameters[0];
if (tok == "*")
{
User* whotoremove = ServerInstance->FindNick(tok.substr(1));
if (whotoremove)
return (RemoveAccept(user, whotoremove, false) ? CMD_SUCCESS : CMD_FAILURE);
+ else
+ return CMD_FAILURE;
}
else
{
virtual Version GetVersion()
{
- return Version(1, 2, 0, 0, VF_COMMON | VF_VENDOR, API_VERSION);
+ return Version("$Id$", VF_COMMON | VF_VENDOR, API_VERSION);
}
virtual void On005Numeric(std::string& output)