From b10ac3beb62b0b705797061f87d66ced6fc2e8d0 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 27 Apr 2005 15:21:08 +0000 Subject: Added a Server:: method to send server notices to channels git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1214 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/inspircd.h | 2 +- include/modules.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/inspircd.h b/include/inspircd.h index c3866e279..2ade03588 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -105,7 +105,7 @@ void WriteCommon(userrec *u, char* text, ...); void WriteCommonExcept(userrec *u, char* text, ...); void WriteWallOps(userrec *source, bool local_only, char* text, ...); void WriteChannelLocal(chanrec* Ptr, userrec* user, char* text, ...); -void WriteChannelWithServ(char* ServerName, chanrec* Ptr, userrec* user, char* text, ...); +void WriteChannelWithServ(char* ServerName, chanrec* Ptr, char* text, ...); char* chanmodes(chanrec *chan); userrec* Find(std::string nick); chanrec* FindChan(const char* chan); diff --git a/include/modules.h b/include/modules.h index a68b6e9b8..9efb47670 100644 --- a/include/modules.h +++ b/include/modules.h @@ -680,6 +680,10 @@ class Server : public classbase * as used by numerics (see RFC 1459) */ virtual void SendServ(int Socket, std::string s); + /** Writes text to a channel, but from a server, including all. + * This can be used to send server notices to a group of users. + */ + virtual void SendChannelServerNotice(std::string ServName, chanrec* Channel, std::string text); /** Sends text from a user to a socket. * This method writes a line of text to an established socket, with the given user's nick/ident * /host combination prepended, as used in PRIVSG etc commands (see RFC 1459) -- cgit v1.2.3