]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/users.h
Remove redundant null pointer check from m_ldapauth
[user/henk/code/inspircd.git] / include / users.h
index 6a61b2bc1b5015eca081fa3caf774e7f92d20b0b..c699ebab7551cc83ce17521c833c0edc3912b920 100644 (file)
@@ -501,10 +501,16 @@ class CoreExport User : public Extensible
         */
        void WriteServ(const char* text, ...) CUSTOM_PRINTF(2, 3);
 
+       /** Sends a command to this user.
+        * @param command The command to be sent.
+        * @param text The message to send.
+        */
+       void WriteCommand(const char* command, const std::string& text);
+
        /** Sends a server notice to this user.
         * @param text The contents of the message to send.
         */
-       void WriteNotice(const std::string& text);
+       void WriteNotice(const std::string& text) { this->WriteCommand("NOTICE", ":" + text); }
 
        void WriteNumeric(unsigned int numeric, const char* text, ...) CUSTOM_PRINTF(3, 4);