]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/coremods/core_xline/core_xline.cpp
Add a typedef for the data provider map.
[user/henk/code/inspircd.git] / src / coremods / core_xline / core_xline.cpp
index 568b7d2693e2a96bf0c4e167e80fdf4a6722ea17..e743c7e7f13fd448131d6f0ff09d7915efbd362b 100644 (file)
@@ -4,7 +4,7 @@
  *   Copyright (C) 2019 linuxdaemon <linuxdaemon.irc@gmail.com>
  *   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-2020 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
@@ -77,6 +77,16 @@ class CoreModXLine : public Module
                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)