summaryrefslogtreecommitdiff
path: root/src/users.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/users.c')
-rw-r--r--src/users.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/users.c b/src/users.c
index 4311f8d33..946f70f6a 100644
--- a/src/users.c
+++ b/src/users.c
@@ -849,20 +849,11 @@ User *do_nick(const char *source, const char *nick, const char *username, const
if (MOD_RESULT == EVENT_STOP)
return finduser(nick);
- check_akill(nick, username, host, vhost, ipbuf);
-
- if (ircd->sgline)
- check_sgline(nick, realname);
-
- if (ircd->sqline)
- check_sqline(nick, 0);
-
- if (ircd->szline && ircd->nickip)
- check_szline(nick, ipbuf);
-
if (Config.LimitSessions && !serv->IsULined())
add_session(nick, host, ipbuf);
+ XLineManager::CheckAll(user);
+
/* User is no longer connected, return */
if (!finduser(nick))
return NULL;
@@ -937,7 +928,7 @@ User *do_nick(const char *source, const char *nick, const char *username, const
if (ircd->sqline)
{
- if (!is_oper(user) && check_sqline(user->nick.c_str(), 1))
+ if (!is_oper(user) && SQLine->Check(user))
return NULL;
}
}