X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmodules%2Fm_ircv3.cpp;h=e23999045934fe66e83c97e275d62254e7625410;hb=b4a174ee9c32d62ea6bf010e837e8c5b1c3d36a3;hp=14b1cf8a161ee46ca601fd4a74352fb5348f4c93;hpb=58a0a7e01422e62de1565a8eb0a1febdc463d04d;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_ircv3.cpp b/src/modules/m_ircv3.cpp index 14b1cf8a1..e23999045 100644 --- a/src/modules/m_ircv3.cpp +++ b/src/modules/m_ircv3.cpp @@ -1,7 +1,8 @@ /* * InspIRCd -- Internet Relay Chat Daemon * - * Copyright (C) 2012 Attila Molnar + * Copyright (C) 2013, 2018-2019 Sadie Powell + * Copyright (C) 2012-2013, 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 @@ -50,10 +51,10 @@ class JoinHook : public ClientProtocol::EventHook ClientProtocol::Events::Join extendedjoinmsg; public: - const std::string asterisk; + const std::string asterisk; ClientProtocol::EventProvider awayprotoev; AwayMessage awaymsg; - Cap::Capability extendedjoincap; + Cap::Capability extendedjoincap; Cap::Capability awaycap; JoinHook(Module* mod) @@ -139,6 +140,9 @@ class ModuleIRCv3 void OnAccountChange(User* user, const std::string& newaccount) CXX11_OVERRIDE { + if (!(user->registered & REG_NICKUSER)) + return; + // Logged in: 1 parameter which is the account name // Logged out: 1 parameter which is a "*" ClientProtocol::Message msg("ACCOUNT", user); @@ -172,7 +176,7 @@ class ModuleIRCv3 Version GetVersion() CXX11_OVERRIDE { - return Version("Provides support for extended-join, away-notify and account-notify CAP capabilities", VF_VENDOR); + return Version("Provides the IRCv3 account-notify, away-notify, and extended-join client capabilities.", VF_VENDOR); } };