* | 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.
*
* ---------------------------------------------------
*/
-using namespace std;
-
#include <stdio.h>
#include <vector>
#include "users.h"
List[I_OnPostOper] = List[I_OnRehash] = 1;
}
- virtual void OnRehash(const std::string ¶meter)
+ virtual void OnRehash(userrec* user, const std::string ¶meter)
{
DELETE(Conf);
Conf = new ConfigReader(ServerInstance);
virtual Version GetVersion()
{
- return Version(1,0,0,1,VF_VENDOR,API_VERSION);
+ return Version(1,1,0,1,VF_VENDOR,API_VERSION);
}
virtual void OnPostOper(userrec* user, const std::string &opertype)
for (unsigned int k = 1; k < tokens.size(); k++)
{
modes[i] = (char*)tokens[k].c_str();
- ServerInstance->Log(DEBUG, "m_opermodes.so: got mode param: %s", modes[i]);
i++;
}
}
-
- ServerInstance->Log(DEBUG, "m_opermodes.so: new modes for %s: %s", modes[0], modes[1]);
+ std::deque<std::string> n;
+ Event rmode((char *)&n, NULL, "send_mode");
+ n.push_back(user->nick);
+ n.push_back(modes[0]);
+ for (unsigned int j = 1; j < tokens.size(); j++)
+ {
+ n.push_back(modes[j]);
+ }
+ rmode.Send(ServerInstance);
ServerInstance->SendMode(modes, size, user);
}
break;