summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/modules/ircv3_replies.h12
-rw-r--r--src/modules/m_cap.cpp6
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")
{
}