* ---------------------------------------------------
*/
-using namespace std;
-
-#include "inspircd_config.h"
-#include "inspircd.h"
-#include "inspircd_io.h"
-#include <string>
-#ifdef GCC3
-#include <ext/hash_map>
-#else
-#include <hash_map>
-#endif
#include <vector>
-#include <deque>
+#include "inspircd_config.h"
+#include "hash_map.h"
+#include "configreader.h"
#include "users.h"
-#include "ctables.h"
-#include "globals.h"
#include "modules.h"
-#include "dynamic.h"
-#include "message.h"
#include "commands.h"
-#include "inspstring.h"
#include "helperfuncs.h"
-#include "hashcomp.h"
-#include "typedefs.h"
#include "cmd_kill.h"
extern ServerConfig* Config;
char killreason[MAXBUF];
int MOD_RESULT = 0;
- log(DEBUG,"kill: %s %s", parameters[0], parameters[1]);
+ log(DEBUG,"kill: %s %s", parameters[0], parameters[1]);
if (u)
{
log(DEBUG, "into kill mechanism");
- FOREACH_RESULT(I_OnKill, OnKill(user, u, parameters[1]));
+ FOREACH_RESULT(I_OnKill, OnKill(user, u, parameters[1]));
- if (MOD_RESULT)
+ if (MOD_RESULT)
{
log(DEBUG, "A module prevented the kill with result %d", MOD_RESULT);
- return;
- }
+ return;
+ }
if (!IS_LOCAL(u))
{
WriteServ(user->fd, "401 %s %s :No such nick/channel", user->nick, parameters[0]);
}
}
-
-