diff options
author | robbeh <robbeh@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-12-15 21:29:48 +0000 |
---|---|---|
committer | robbeh <robbeh@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-12-15 21:29:48 +0000 |
commit | f1c975c89f0f860a0c0a3ccbb39955ce7d2ae0fa (patch) | |
tree | 897f5dc851835b4e9c14879daac5a3436168df92 /src | |
parent | 3beac16030c79c27c01dd19d5962ed9279cd1c86 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/core/cs_ban.c | 5 |
1 files 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); |