X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_check.cpp;h=5434f805496b9ee54628d7b65a29aa63690aa5b5;hb=3151d60c1ecc9462e4c335282ee6c31672f45111;hp=25d85b6beac3d2e7217f3885803053f5988d1c73;hpb=aa692dc1039b63deef7886e914ec499abe7facaf;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp index 25d85b6be..5434f8054 100644 --- a/src/modules/m_check.cpp +++ b/src/modules/m_check.cpp @@ -1,8 +1,9 @@ /* * InspIRCd -- Internet Relay Chat Daemon * + * Copyright (C) 2020 Matt Schatz * Copyright (C) 2013-2016 Attila Molnar - * Copyright (C) 2013, 2017-2019 Sadie Powell + * Copyright (C) 2013, 2017-2020 Sadie Powell * Copyright (C) 2012, 2019 Robby * Copyright (C) 2010 Craig Edwards * Copyright (C) 2009-2010 Daniel De Graaf @@ -150,7 +151,8 @@ class CommandCheck : public Command : Command(parent,"CHECK", 1) , snomaskmode(parent, "snomask") { - flags_needed = 'o'; syntax = "||| []"; + flags_needed = 'o'; + syntax = "||| []"; } CmdResult Handle(User* user, const Params& parameters) CXX11_OVERRIDE @@ -220,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()); @@ -326,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); } };