summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/cs_appendtopic.c2
-rw-r--r--src/modules/cs_enforce.c4
-rw-r--r--src/modules/cs_tban.c4
-rw-r--r--src/modules/hs_request.c8
-rw-r--r--src/modules/os_info.c13
5 files changed, 16 insertions, 15 deletions
diff --git a/src/modules/cs_appendtopic.c b/src/modules/cs_appendtopic.c
index d5b32fe2a..60310b82b 100644
--- a/src/modules/cs_appendtopic.c
+++ b/src/modules/cs_appendtopic.c
@@ -124,7 +124,7 @@ class CommandCSAppendTopic : public Command
return true;
}
- void OnSyntaxError(User *u)
+ void OnSyntaxError(User *u, const ci::string &subcommand)
{
me->NoticeLang(s_ChanServ, u, LNG_APPENDTOPIC_SYNTAX);
}
diff --git a/src/modules/cs_enforce.c b/src/modules/cs_enforce.c
index 47fdedc07..8dc9d0722 100644
--- a/src/modules/cs_enforce.c
+++ b/src/modules/cs_enforce.c
@@ -224,7 +224,7 @@ class CommandCSEnforce : public Command
me->NoticeLang(s_ChanServ, u, LNG_CHAN_RESPONSE, what.c_str());
}
else
- this->OnSyntaxError(u);
+ this->OnSyntaxError(u, "");
}
return MOD_CONT;
@@ -244,7 +244,7 @@ class CommandCSEnforce : public Command
return true;
}
- void OnSyntaxError(User *u)
+ void OnSyntaxError(User *u, const ci::string &subcommand)
{
me->NoticeLang(s_ChanServ, u, LNG_ENFORCE_SYNTAX);
}
diff --git a/src/modules/cs_tban.c b/src/modules/cs_tban.c
index 9f8f2a2db..1aea779f5 100644
--- a/src/modules/cs_tban.c
+++ b/src/modules/cs_tban.c
@@ -72,14 +72,14 @@ class CommandCSTBan : public Command
bool OnHelp(User *u, const ci::string &subcommand)
{
- this->OnSyntaxError(u);
+ this->OnSyntaxError(u, "");
ircdproto->SendMessage(findbot(s_ChanServ), u->nick, " ");
me->NoticeLang(s_ChanServ, u, TBAN_HELP_DETAIL);
return true;
}
- void OnSyntaxError(User *u)
+ void OnSyntaxError(User *u, const ci::string &subcommand)
{
me->NoticeLang(s_ChanServ, u, TBAN_SYNTAX);
}
diff --git a/src/modules/hs_request.c b/src/modules/hs_request.c
index 0466f95fe..4601c931b 100644
--- a/src/modules/hs_request.c
+++ b/src/modules/hs_request.c
@@ -193,7 +193,7 @@ class CommandHSRequest : public Command
return true;
}
- void OnSyntaxError(User *u)
+ void OnSyntaxError(User *u, const ci::string &subcommand)
{
me->NoticeLang(s_HostServ, u, LNG_REQUEST_SYNTAX);
}
@@ -258,7 +258,7 @@ class CommandHSActivate : public Command
return true;
}
- void OnSyntaxError(User *u)
+ void OnSyntaxError(User *u, const ci::string &subcommand)
{
me->NoticeLang(s_HostServ, u, LNG_ACTIVATE_SYNTAX);
}
@@ -321,7 +321,7 @@ class CommandHSReject : public Command
return true;
}
- void OnSyntaxError(User *u)
+ void OnSyntaxError(User *u, const ci::string &subcommand)
{
me->NoticeLang(s_HostServ, u, LNG_REJECT_SYNTAX);
}
@@ -370,7 +370,7 @@ class HSListBase : public Command
{
}
- void OnSyntaxError(User *u)
+ void OnSyntaxError(User *u, const ci::string &subcommand)
{
// no-op
}
diff --git a/src/modules/os_info.c b/src/modules/os_info.c
index 6298a7744..a56aa724f 100644
--- a/src/modules/os_info.c
+++ b/src/modules/os_info.c
@@ -61,7 +61,7 @@ class CommandNSOInfo : public Command
if (!info)
{
- this->OnSyntaxError(u);
+ this->OnSyntaxError(u, "ADD");
return MOD_CONT;
}
@@ -119,7 +119,8 @@ class CommandNSOInfo : public Command
else if (cmd == "DEL")
return this->DoDel(u, params);
else
- this->OnSyntaxError(u);
+ this->OnSyntaxError(u, "");
+
return MOD_CONT;
}
@@ -129,7 +130,7 @@ class CommandNSOInfo : public Command
return true;
}
- void OnSyntaxError(User *u)
+ void OnSyntaxError(User *u, const ci::string &subcommand)
{
me->NoticeLang(s_NickServ, u, OINFO_SYNTAX);
}
@@ -147,7 +148,7 @@ class CommandCSOInfo : public Command
if (!info)
{
- this->OnSyntaxError(u);
+ this->OnSyntaxError(u, "ADD");
return MOD_CONT;
}
@@ -193,7 +194,7 @@ class CommandCSOInfo : public Command
else if (cmd == "DEL")
return this->DoDel(u, params);
else
- this->OnSyntaxError(u);
+ this->OnSyntaxError(u, "");
return MOD_CONT;
}
@@ -203,7 +204,7 @@ class CommandCSOInfo : public Command
return true;
}
- void OnSyntaxError(User *u)
+ void OnSyntaxError(User *u, const ci::string &subcommand)
{
me->NoticeLang(s_ChanServ, u, OCINFO_SYNTAX);
}