diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-02 02:15:58 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-02 02:15:58 +0000 |
commit | 14b14e92987037beb7182d99028e3718956ab2a9 (patch) | |
tree | f9390b3a904326f89805abca4508fbb16493b9d0 /src | |
parent | 64a926656777aaaefaf355c4ee6d40ccd479039d (diff) |
blah
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2103 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/inspircd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index e20a374be..6bd493a28 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -1634,7 +1634,7 @@ bool is_valid_cmd(const char* commandname, int pcnt, userrec * user) { if (cmdlist[i].flags_needed) { - if (!user->HasPermission(command)) + if (!user->HasPermission(commandname)) { return true; } @@ -1668,7 +1668,7 @@ void call_handler(const char* commandname,char **parameters, int pcnt, userrec * { if (cmdlist[i].flags_needed) { - if (!user->HasPermission(command)) + if (!user->HasPermission(commandname)) { cmdlist[i].handler_function(parameters,pcnt,user); } |