From f1c975c89f0f860a0c0a3ccbb39955ce7d2ae0fa Mon Sep 17 00:00:00 2001 From: robbeh Date: Tue, 15 Dec 2009 21:29:48 +0000 Subject: [PATCH] Added a KB alias to ban to allow the !kb fantasy trigger git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2704 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/cs_ban.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/cs_ban.c b/src/core/cs_ban.c index c154064ca..81a1c5124 100644 --- a/src/core/cs_ban.c +++ b/src/core/cs_ban.c @@ -18,7 +18,7 @@ class CommandCSBan : public Command { public: - CommandCSBan() : Command("BAN", 2, 3) + CommandCSBan(const std::string &cname) : Command(cname, 2, 3) { } @@ -162,7 +162,8 @@ class CSBan : public Module this->SetAuthor("Anope"); this->SetVersion("$Id$"); this->SetType(CORE); - this->AddCommand(CHANSERV, new CommandCSBan()); + this->AddCommand(CHANSERV, new CommandCSBan("BAN")); + this->AddCommand(CHANSERV, new CommandCSBan("KB")); this->AddCommand(CHANSERV, new CommandCSUnban()); ModuleManager::Attach(I_OnChanServHelp, this);