X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_ircv3.cpp;h=6786cf0b4f4b72ea75cdd22737d02fae887706b8;hb=c71361e8e4f22cb4f72881399bce2832eb080b0e;hp=14b1cf8a161ee46ca601fd4a74352fb5348f4c93;hpb=b2ac8cc0a6405946a388b80df3be21bc276a61f3;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_ircv3.cpp b/src/modules/m_ircv3.cpp index 14b1cf8a1..6786cf0b4 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, 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 @@ -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); } };