* InspIRCd -- Internet Relay Chat Daemon
*
* Copyright (C) 2019 linuxdaemon <linuxdaemon.irc@gmail.com>
+ * Copyright (C) 2019 Robby <robby@chatbelgie.be>
* Copyright (C) 2019 Matt Schatz <genius3000@g3k.solutions>
- * Copyright (C) 2018-2019 Robby <robby@chatbelgie.be>
- * Copyright (C) 2017-2019 Sadie Powell <sadie@witchery.services>
+ * Copyright (C) 2017-2021 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2014, 2016 Attila Molnar <attilamolnar@hush.com>
*
* This file is part of InspIRCd. InspIRCd is free software: you can
user->CheckLines(true);
}
+ void OnChangeRealHost(User* user, const std::string& newhost) CXX11_OVERRIDE
+ {
+ LocalUser* luser = IS_LOCAL(user);
+ if (!luser || luser->quitting)
+ return;
+
+ luser->exempt = (ServerInstance->XLines->MatchesLine("E", user) != NULL);
+ luser->CheckLines(false);
+ }
+
ModResult OnUserPreNick(LocalUser* user, const std::string& newnick) CXX11_OVERRIDE
{
// Check Q-lines (for local nick changes only, remote servers have our Q-lines to enforce themselves)
// A Q-line matched the new nick, tell opers if the user is registered
if (user->registered == REG_ALL)
{
- ServerInstance->SNO->WriteGlobalSno('a', "Q-lined nickname %s from %s: %s",
+ ServerInstance->SNO->WriteGlobalSno('x', "Q-lined nickname %s from %s: %s",
newnick.c_str(), user->GetFullRealHost().c_str(), xline->reason.c_str());
}