diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-27 15:21:08 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-27 15:21:08 +0000 |
commit | b10ac3beb62b0b705797061f87d66ced6fc2e8d0 (patch) | |
tree | c1215055fb5b2c197ba585f0cc33b0a8ee0e83ef /include | |
parent | 84b702f39522342c32c7e7f836fdd2ff8f25a721 (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/inspircd.h | 2 | ||||
-rw-r--r-- | include/modules.h | 4 |
2 files changed, 5 insertions, 1 deletions
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) |