summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/mode.h2
-rw-r--r--src/mode.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/mode.h b/include/mode.h
index de92e8ec5..cbe20ff97 100644
--- a/include/mode.h
+++ b/include/mode.h
@@ -533,7 +533,7 @@ class CoreExport ModeParser : public fakederef<ModeParser>
/** Displays the current modes of a channel or user.
* Used by ModeParser::Process.
*/
- void DisplayCurrentModes(User *user, User* targetuser, Channel* targetchannel, const char* text);
+ void DisplayCurrentModes(User* user, User* targetuser, Channel* targetchannel);
/** Displays the value of a list mode
* Used by ModeParser::Process.
*/
diff --git a/src/mode.cpp b/src/mode.cpp
index e895b77d0..ce4cb5b87 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -152,7 +152,7 @@ void ModeWatcher::AfterMode(User*, User*, Channel*, const std::string&, bool)
{
}
-void ModeParser::DisplayCurrentModes(User *user, User* targetuser, Channel* targetchannel, const char* text)
+void ModeParser::DisplayCurrentModes(User* user, User* targetuser, Channel* targetchannel)
{
if (targetchannel)
{
@@ -384,7 +384,7 @@ void ModeParser::Process(const std::vector<std::string>& parameters, User* user,
}
if (parameters.size() == 1)
{
- this->DisplayCurrentModes(user, targetuser, targetchannel, target.c_str());
+ this->DisplayCurrentModes(user, targetuser, targetchannel);
return;
}