diff options
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) |