diff options
author | DukePyrolator <DukePyrolator@anope.org> | 2013-07-08 05:05:13 +0200 |
---|---|---|
committer | DukePyrolator <DukePyrolator@anope.org> | 2013-07-08 05:05:13 +0200 |
commit | 2ea594d6779cb2456f91c2cbe24e5242286836b5 (patch) | |
tree | 581f532aa692aef2109e5321f8716fe78a30eb00 /include/messages.h | |
parent | e957c7b2d27d8abb89143ee43675a72a3017226e (diff) |
added protocol support for incoming NOTICEs
Diffstat (limited to 'include/messages.h')
-rw-r--r-- | include/messages.h | 13 |
1 files changed, 10 insertions, 3 deletions
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<Anope::string> ¶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<Anope::string> ¶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); } |