diff options
author | Sadie Powell <sadie@witchery.services> | 2020-02-14 03:46:54 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-04-13 18:36:21 +0100 |
commit | 31897d26f2ae1f0fc794a5af512dd4e81053611b (patch) | |
tree | 6e091681554107858c75e0199843bd08cd26b8f7 | |
parent | 256be7abde8c4f882c1fb491d485e4ce2f6985c9 (diff) |
Add the inspircd.org/standard-replies capability.
-rw-r--r-- | include/modules/ircv3_replies.h | 12 | ||||
-rw-r--r-- | src/modules/m_cap.cpp | 6 |
2 files changed, 16 insertions, 2 deletions
diff --git a/include/modules/ircv3_replies.h b/include/modules/ircv3_replies.h index 517546e46..3ff462ad7 100644 --- a/include/modules/ircv3_replies.h +++ b/include/modules/ircv3_replies.h @@ -25,6 +25,7 @@ namespace IRCv3 { namespace Replies { + class CapReference; class Reply; class Fail; class Note; @@ -32,6 +33,17 @@ namespace IRCv3 } } +/** Reference to the inspircd.org/standard-replies cap. */ +class IRCv3::Replies::CapReference + : public Cap::Reference +{ + public: + CapReference(Module* mod) + : Cap::Reference(mod, "inspircd.org/standard-replies") + { + } +}; + /** Base class for standard replies. */ class IRCv3::Replies::Reply { diff --git a/src/modules/m_cap.cpp b/src/modules/m_cap.cpp index b9ba3a3b5..f035944ba 100644 --- a/src/modules/m_cap.cpp +++ b/src/modules/m_cap.cpp @@ -489,12 +489,14 @@ class ModuleCap : public Module { private: CommandCap cmd; - PoisonCap cap; + PoisonCap poisoncap; + Cap::Capability stdrplcap; public: ModuleCap() : cmd(this) - , cap(this) + , poisoncap(this) + , stdrplcap(this, "inspircd.org/standard-replies") { } |