]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Deprecate Send{Channel,User}Notice; use SendMessage instead.
authorPeter Powell <petpow@saberuk.com>
Sun, 17 Nov 2019 22:37:24 +0000 (22:37 +0000)
committerPeter Powell <petpow@saberuk.com>
Sun, 17 Nov 2019 22:37:24 +0000 (22:37 +0000)
include/protocol.h
src/users.cpp

index f98f6b37d4d40a90e344471f9ae0854eacd0eec0..c95ea17061bcc60478d9e8aeca08b3d2f6b13421 100644 (file)
@@ -122,7 +122,7 @@ class CoreExport ProtocolInterface
         * @param status The status character (e.g. %) required to receive.
         * @param text The message to send.
         */
-       void SendChannelNotice(Channel* target, char status, const std::string &text)
+       DEPRECATED_METHOD(void SendChannelNotice(Channel* target, char status, const std::string& text))
        {
                SendMessage(target, status, text, MSG_NOTICE);
        }
@@ -131,7 +131,7 @@ class CoreExport ProtocolInterface
         * @param target The user to message.
         * @param text The message to send.
         */
-       void SendUserNotice(User* target, const std::string &text)
+       DEPRECATED_METHOD(void SendUserNotice(User* target, const std::string& text))
        {
                SendMessage(target, text, MSG_NOTICE);
        }
index bca1c6a7cdfeadafb7214a3c655c6f5a1422a42d..6c58f0617d500c52624336a4e427a2aa2cd7c6fe 100644 (file)
@@ -853,7 +853,7 @@ void User::WriteNumeric(const Numeric::Numeric& numeric)
 
 void User::WriteRemoteNotice(const std::string& text)
 {
-       ServerInstance->PI->SendUserNotice(this, text);
+       ServerInstance->PI->SendMessage(this, text, MSG_NOTICE);
 }
 
 void LocalUser::WriteRemoteNotice(const std::string& text)