X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_ircv3_capnotify.cpp;h=816412dab6fa575f43905688a5cac33266ab128c;hb=3151d60c1ecc9462e4c335282ee6c31672f45111;hp=7546d6213f2166faf4ce964fa55f285f27a7e021;hpb=9acece70e533fc45d5401e331af25a5e99dab660;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_ircv3_capnotify.cpp b/src/modules/m_ircv3_capnotify.cpp index 7546d6213..816412dab 100644 --- a/src/modules/m_ircv3_capnotify.cpp +++ b/src/modules/m_ircv3_capnotify.cpp @@ -1,7 +1,8 @@ /* * InspIRCd -- Internet Relay Chat Daemon * - * Copyright (C) 2015 Attila Molnar + * Copyright (C) 2018-2020 Sadie Powell + * Copyright (C) 2015, 2018 Attila Molnar * * This file is part of InspIRCd. InspIRCd is free software: you can * redistribute it and/or modify it under the terms of the GNU General Public @@ -102,7 +103,7 @@ class ModuleIRCv3CapNotify : public Module, public Cap::EventListener, public Re continue; // Check that this user can actually see the cap. - if (!cap->OnList(user)) + if (add && (!cap || !cap->OnList(user))) continue; // If the cap is being added and the client supports cap values then show the value, if any @@ -163,7 +164,7 @@ class ModuleIRCv3CapNotify : public Module, public Cap::EventListener, public Re void OnReloadModuleRestore(Module* mod, void* data) CXX11_OVERRIDE { - // Reloading can change the set of caps provided by a module so assuming that if the reload succeded all + // Reloading can change the set of caps provided by a module so assuming that if the reload succeeded all // caps that the module previously provided are available or all were lost if the reload failed is wrong. // Instead, we verify the availability of each cap individually. dynamic_reference_nocheck capmanager(this, "capmanager"); @@ -182,7 +183,7 @@ class ModuleIRCv3CapNotify : public Module, public Cap::EventListener, public Re Version GetVersion() CXX11_OVERRIDE { - return Version("Provides the cap-notify IRCv3 extension", VF_VENDOR); + return Version("Provides the IRCv3 cap-notify client capability.", VF_VENDOR); } };