diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-10-30 01:04:13 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-10-30 01:04:13 +0000 |
commit | 6a9fa9f4d2ead592eb51a014491ce3aaee2029e8 (patch) | |
tree | 454479f2c8ef69a52e461416be42fd94d8b15955 /src/users.c | |
parent | 5fc268b7509f20cbf1243b99f2669033b93db00e (diff) |
Rewrote all of the defcon code, and moved most of it to os_defcon. This fixes defcon to have the ability to use modes introduced to Anope at a later time than on startup (eg, from the IRCd), amongst other things
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2597 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/users.c')
-rw-r--r-- | src/users.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/users.c b/src/users.c index 8a30cd739..32dadbbba 100644 --- a/src/users.c +++ b/src/users.c @@ -627,7 +627,6 @@ User *do_nick(const char *source, const char *nick, const char *username, const NickAlias *old_na; /* Old nick rec */ int nc_changed = 1; /* Did nick core change? */ int status = 0; /* Status to apply */ - char mask[USERMAX + HOSTMAX + 2]; char *logrealname; std::string oldnick; /* stores the old nick of the user, so we can pass it to OnUserNickChange */ @@ -709,22 +708,10 @@ User *do_nick(const char *source, const char *nick, const char *username, const EventReturn MOD_RESULT; FOREACH_RESULT(I_OnPreUserConnect, OnPreUserConnect(user)); if (MOD_RESULT == EVENT_STOP) - return; + return NULL; check_akill(nick, username, host, vhost, ipbuf); - if (is_sync(findserver(servlist, server)) && checkDefCon(DEFCON_AKILL_NEW_CLIENTS) && !is_ulined(server)) - { - strlcpy(mask, "*@", sizeof(mask)); - strlcat(mask, host, sizeof(mask)); - alog("DEFCON: adding akill for %s", mask); - add_akill(NULL, mask, s_OperServ, - time(NULL) + DefConAKILL, - DefConAkillReason ? DefConAkillReason : - "DEFCON AKILL"); - check_akill(nick, username, host, vhost, ipbuf); - } - if (ircd->sgline) check_sgline(nick, realname); |