]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_check.cpp
Only assign NewServices once the duplicate check is done.
[user/henk/code/inspircd.git] / src / modules / m_check.cpp
index f74ddb922dcd6789a5a2727e434ac2cb4a3d650f..5434f805496b9ee54628d7b65a29aa63690aa5b5 100644 (file)
@@ -1,8 +1,9 @@
 /*
  * InspIRCd -- Internet Relay Chat Daemon
  *
+ *   Copyright (C) 2020 Matt Schatz <genius3000@g3k.solutions>
  *   Copyright (C) 2013-2016 Attila Molnar <attilamolnar@hush.com>
- *   Copyright (C) 2013, 2017-2019 Sadie Powell <sadie@witchery.services>
+ *   Copyright (C) 2013, 2017-2020 Sadie Powell <sadie@witchery.services>
  *   Copyright (C) 2012, 2019 Robby <robby@chatbelgie.be>
  *   Copyright (C) 2010 Craig Edwards <brain@inspircd.org>
  *   Copyright (C) 2009-2010 Daniel De Graaf <danieldg@inspircd.org>
@@ -221,6 +222,8 @@ class CommandCheck : public Command
                                std::string classname = loctarg->GetClass()->name;
                                if (!classname.empty())
                                        context.Write("connectclass", classname);
+
+                               context.Write("exempt", loctarg->exempt ? "yes" : "no");
                        }
                        else
                                context.Write("onip", targuser->GetIPString());
@@ -327,7 +330,7 @@ class ModuleCheck : public Module
 
        Version GetVersion() CXX11_OVERRIDE
        {
-               return Version("Provides the CHECK command to view user, channel, IP address or hostname information", VF_VENDOR|VF_OPTCOMMON);
+               return Version("Adds the /CHECK command which allows server operators to look up details about a channel, user, IP address, or hostname.", VF_VENDOR|VF_OPTCOMMON);
        }
 };