summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-11-14 12:44:34 -0500
committerAdam <Adam@anope.org>2010-11-14 12:44:34 -0500
commit4415a779a3ff690e800198b27a16a80a630b1e3d (patch)
treef68591e214c7e67254f28e7b04c25bc587f72a25
parent8662b0989ed9725b13be203b40836a96c894f733 (diff)
Fixed ban and kick from showing up twice in /cs help
-rw-r--r--modules/core/cs_ban.cpp3
-rw-r--r--modules/core/cs_kick.cpp3
2 files changed, 4 insertions, 2 deletions
diff --git a/modules/core/cs_ban.cpp b/modules/core/cs_ban.cpp
index 69feaed5b..dd2f9be8d 100644
--- a/modules/core/cs_ban.cpp
+++ b/modules/core/cs_ban.cpp
@@ -89,7 +89,8 @@ class CommandCSBan : public Command
void OnServHelp(User *u)
{
- u->SendMessage(ChanServ, CHAN_HELP_CMD_BAN);
+ if (this->name.equals_ci("BAN"))
+ u->SendMessage(ChanServ, CHAN_HELP_CMD_BAN);
}
};
diff --git a/modules/core/cs_kick.cpp b/modules/core/cs_kick.cpp
index 267c776e7..66c7c84db 100644
--- a/modules/core/cs_kick.cpp
+++ b/modules/core/cs_kick.cpp
@@ -75,7 +75,8 @@ class CommandCSKick : public Command
void OnServHelp(User *u)
{
- u->SendMessage(ChanServ, CHAN_HELP_CMD_KICK);
+ if (this->name.equals_ci("KICK"))
+ u->SendMessage(ChanServ, CHAN_HELP_CMD_KICK);
}
};