summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-04-18 19:51:24 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-04-18 19:51:24 +0000
commit97c7c3ff2a483e42f4e4ef900fc9ea493d498ebb (patch)
treebfb66824e2562770a39af73be0f73d6d8d89cec9 /include
parent00d3b7007ed26840ebb673802d90dcb9427fe377 (diff)
Add global-routing snomask functions
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11314 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/snomasks.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/include/snomasks.h b/include/snomasks.h
index a8e5c525c..e1af1a109 100644
--- a/include/snomasks.h
+++ b/include/snomasks.h
@@ -90,19 +90,33 @@ class CoreExport SnomaskManager : public Extensible
*/
bool DisableSnomask(char letter);
- /** Write to all users with a given snomask.
+ /** Write to all users with a given snomask (local server only)
* @param letter The snomask letter to write to
* @param text The text to send to the users
*/
void WriteToSnoMask(char letter, const std::string &text);
- /** Write to all users with a given snomask.
+ /** Write to all users with a given snomask (local server only)
* @param letter The snomask letter to write to
* @param text A format string containing text to send
* @param ... Format arguments
*/
void WriteToSnoMask(char letter, const char* text, ...) CUSTOM_PRINTF(3, 4);
+ /** Write to all users with a given snomask (sent globally)
+ * @param letter The snomask letter to write to
+ * @param text The text to send to the users
+ */
+ void WriteGlobalSno(char letter, const std::string &text);
+
+ /** Write to all users with a given snomask (sent globally)
+ * @param letter The snomask letter to write to
+ * @param text A format string containing text to send
+ * @param ... Format arguments
+ */
+ void WriteGlobalSno(char letter, const char* text, ...) CUSTOM_PRINTF(3, 4);
+
+
/** Called once per 5 seconds from the mainloop, this flushes any cached
* snotices. The way the caching works is as follows:
* Calls to WriteToSnoMask write to a cache, if the call is the same as it was