/*
* InspIRCd -- Internet Relay Chat Daemon
*
- * Copyright (C) 2012 Attila Molnar <attilamolnar@hush.com>
+ * Copyright (C) 2013, 2018-2019 Sadie Powell <sadie@witchery.services>
+ * Copyright (C) 2012, 2015, 2018 Attila Molnar <attilamolnar@hush.com>
*
* 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
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);
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);
}
};