summaryrefslogtreecommitdiff
path: root/src/servers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/servers.cpp')
-rw-r--r--src/servers.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/servers.cpp b/src/servers.cpp
index 582fb6908..51a7608e1 100644
--- a/src/servers.cpp
+++ b/src/servers.cpp
@@ -352,6 +352,19 @@ bool Server::IsULined() const
return false;
}
+
+/** Send a message to alll users on this server
+ * @param source The source of the message
+ * @param message The message
+ */
+void Server::Notice(BotInfo *source, const Anope::string &message)
+{
+ if (Config->NSDefFlags.HasFlag(NI_MSG))
+ ircdproto->SendGlobalPrivmsg(source, this, message);
+ else
+ ircdproto->SendGlobalNotice(source, this, message);
+}
+
/** Find a server
* @param name The name or SID/numeric
* @param s The server list to search for this server on, defaults to our Uplink