From 2ea594d6779cb2456f91c2cbe24e5242286836b5 Mon Sep 17 00:00:00 2001 From: DukePyrolator Date: Mon, 8 Jul 2013 05:05:13 +0200 Subject: added protocol support for incoming NOTICEs --- include/messages.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'include/messages.h') diff --git a/include/messages.h b/include/messages.h index d226a35b7..059dd718a 100644 --- a/include/messages.h +++ b/include/messages.h @@ -9,14 +9,14 @@ * Based on the original code of Services by Andy Church. * */ - + #include "protocol.h" - + /* Common IRCD messages. * Protocol modules may chose to include some, none, or all of these handlers * as they see fit. */ - + namespace Message { @@ -94,6 +94,13 @@ namespace Message void Run(MessageSource &source, const std::vector ¶ms) anope_override; }; + struct CoreExport Notice : IRCDMessage + { + Notice(Module *creator, const Anope::string &mname = "NOTICE") : IRCDMessage(creator, mname, 2) { SetFlag(IRCDMESSAGE_REQUIRE_USER); } + + void Run(MessageSource &source, const std::vector ¶ms) anope_override; + }; + struct CoreExport Part : IRCDMessage { Part(Module *creator, const Anope::string &mname = "PART") : IRCDMessage(creator, mname, 1) { SetFlag(IRCDMESSAGE_REQUIRE_USER); SetFlag(IRCDMESSAGE_SOFT_LIMIT); } -- cgit