aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGravatar Attila Molnar2013-05-14 16:24:08 -0700
committerGravatar Attila Molnar2013-05-14 16:24:08 -0700
commit23e8bba13c55d33ce89d505780da36c9589e300a (patch)
tree85a2e81cde272a0900b0e448d2d1fabdfd7e897e /include
parentm_spanningtree UID handler: Fix parsing user modes (diff)
parentAdd method for writing server notices. (diff)
Merge pull request #523 from SaberUK/master+server-notice
Add method for writing server notices.
Diffstat (limited to 'include')
-rw-r--r--include/users.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/users.h b/include/users.h
index 0f57074b2..c94019335 100644
--- a/include/users.h
+++ b/include/users.h
@@ -543,6 +543,11 @@ class CoreExport User : public Extensible
*/
void WriteServ(const char* text, ...) CUSTOM_PRINTF(2, 3);
+ /** Sends a server notice to this user.
+ * @param text The contents of the message to send.
+ */
+ void WriteNotice(const std::string& text);
+
void WriteNumeric(unsigned int numeric, const char* text, ...) CUSTOM_PRINTF(3, 4);
void WriteNumeric(unsigned int numeric, const std::string &text);