summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-08 17:35:38 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-08 17:35:38 +0000
commit118dd2c9f44a20e76b8ddc0d7958a4c63e8de4aa (patch)
tree3a149c7803bc0a51a13912ac9b972288aa48cc5a /src
parentfd81c672603dec9b47e720ebbfd98c6fc35be343 (diff)
Added <disabled:commands> tag!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1015 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/inspircd.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 8d445ce06..e001406b9 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -89,7 +89,7 @@ extern int MaxWhoResults;
time_t nb_start = 0;
int dns_timeout = 5;
-char DisbledCommands[MAXBUF];
+char DisabledCommands[MAXBUF];
bool AllowHalfop = true;
bool AllowProtect = true;
@@ -379,7 +379,7 @@ void ReadConfig(bool bail, userrec* user)
ConfValue("dns","server",0,DNSServer,&config_f);
ConfValue("dns","timeout",0,DNT,&config_f);
ConfValue("options","moduledir",0,ModPath,&config_f);
- ConfValue("disabled","commands",k,DisabledCommands,&config_f);
+ ConfValue("disabled","commands",0,DisabledCommands,&config_f);
NetBufferSize = atoi(NB);
MaxWhoResults = atoi(MW);
@@ -2972,7 +2972,7 @@ void process_command(userrec *user, char* cmd)
mycmd = strtok_r(DisabledCommands," ",&savept2);
while (mycmd)
{
- if (!strcasecmp(mycmd,SomeCommand))
+ if (!strcasecmp(mycmd,command))
{
// command is disabled!
WriteServ(user->fd,"421 %s %s :This command has been disabled.",user->nick,command);