1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 23:16:39 +02:00

Allow OnPreConnect to kill users correctly and made session/xline exempt users not bypass the OnConnect event

This commit is contained in:
Adam
2010-09-29 14:02:17 -04:00
parent 6ca09be663
commit 9d2ef3f130
+8 -8
View File
@@ -762,18 +762,18 @@ User *do_nick(const Anope::string &source, const Anope::string &nick, const Anop
EventReturn MOD_RESULT;
FOREACH_RESULT(I_OnPreUserConnect, OnPreUserConnect(*user));
if (MOD_RESULT == EVENT_STOP)
return *user;
if (Config->LimitSessions && !serv->IsULined())
add_session(nick, host, user->ip() ? user->ip.addr() : "");
if (user && MOD_RESULT != EVENT_STOP)
{
if (Config->LimitSessions && !serv->IsULined())
add_session(nick, host, user->ip() ? user->ip.addr() : "");
if (!user)
return NULL;
if (!user)
return NULL;
XLineManager::CheckAll(*user);
XLineManager::CheckAll(*user);
}
/* User is no longer connected, return */
if (!user)
return NULL;