summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_cap.cpp4
-rw-r--r--src/modules/m_cap.h1
2 files changed, 2 insertions, 3 deletions
diff --git a/src/modules/m_cap.cpp b/src/modules/m_cap.cpp
index f69df02be..7836b4e15 100644
--- a/src/modules/m_cap.cpp
+++ b/src/modules/m_cap.cpp
@@ -76,9 +76,9 @@ class CommandCAP : public Command
user->WriteServ("CAP * ACK :%s", AckResult.c_str());
}
- if (Data.nak.size() > 0)
+ if (Data.wanted.size() > 0)
{
- std::string NakResult = irc::stringjoiner(" ", Data.nak, 0, Data.nak.size() - 1).GetJoined();
+ std::string NakResult = irc::stringjoiner(" ", Data.wanted, 0, Data.wanted.size() - 1).GetJoined();
user->WriteServ("CAP * NAK :%s", NakResult.c_str());
}
}
diff --git a/src/modules/m_cap.h b/src/modules/m_cap.h
index 1c0ea49fc..9f17bd3d0 100644
--- a/src/modules/m_cap.h
+++ b/src/modules/m_cap.h
@@ -23,7 +23,6 @@ class CapData
irc::string type;
std::vector<std::string> wanted;
std::vector<std::string> ack;
- std::vector<std::string> nak;
User* user;
Module* creator;
};