summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/modules/rpc.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/modules/rpc.h b/include/modules/rpc.h
index 640eebda1..cd0578729 100644
--- a/include/modules/rpc.h
+++ b/include/modules/rpc.h
@@ -173,10 +173,12 @@ class RPC::Event
{
private:
Anope::string event;
+ size_t minparams;
protected:
- Event(const Anope::string& e)
+ Event(const Anope::string& e, size_t mp = 0)
: event(e)
+ , minparams(mp)
{
}
@@ -185,6 +187,8 @@ public:
const auto &GetEvent() const { return event; }
+ const auto &GetMinParams() const { return minparams; }
+
virtual bool Run(ServiceInterface *iface, HTTPClient *client, Request &request) = 0;
};