summaryrefslogtreecommitdiff
path: root/src/modules/m_cap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_cap.cpp')
-rw-r--r--src/modules/m_cap.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/m_cap.cpp b/src/modules/m_cap.cpp
index 355c6d0fb..dbd81ed53 100644
--- a/src/modules/m_cap.cpp
+++ b/src/modules/m_cap.cpp
@@ -69,7 +69,7 @@ class CommandCAP : public Command
reghold.set(user, 1);
Event event((char*) &Data, this->creator, "cap_req");
- event.Send(ServerInstance);
+ event.Send();
if (Data.ack.size() > 0)
{
@@ -97,7 +97,7 @@ class CommandCAP : public Command
reghold.set(user, 1);
Event event((char*) &Data, this->creator, subcommand == "LS" ? "cap_ls" : "cap_list");
- event.Send(ServerInstance);
+ event.Send();
std::string Result;
if (Data.wanted.size() > 0)
@@ -117,7 +117,7 @@ class CommandCAP : public Command
reghold.set(user, 1);
Event event((char*) &Data, this->creator, "cap_clear");
- event.Send(ServerInstance);
+ event.Send();
std::string Result = irc::stringjoiner(" ", Data.ack, 0, Data.ack.size() - 1).GetJoined();
user->WriteServ("CAP * ACK :%s", Result.c_str());
@@ -135,8 +135,8 @@ class ModuleCAP : public Module
{
CommandCAP cmd;
public:
- ModuleCAP(InspIRCd* Me)
- : Module(Me), cmd(this)
+ ModuleCAP()
+ : cmd(this)
{
ServerInstance->AddCommand(&cmd);
Extensible::Register(&cmd.reghold);