summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-14 14:39:27 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-14 14:39:27 +0000
commitc08ea9f1ad62253f6eb880fd8253380fb393232d (patch)
tree9480be76d5d1083e8dfdc44441f43b1f0d187199 /src/users.cpp
parente0e8b0df5a8fe0070d198c46991bfd371548f00c (diff)
Fixed to use new methods of ServerConfig
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2414 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 6d4195f45..35279cee6 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -160,21 +160,21 @@ bool userrec::HasPermission(char* command)
// are they even an oper at all?
if (strchr(this->modes,'o'))
{
- for (int j =0; j < ConfValueEnum("type",&Config->config_f); j++)
+ for (int j =0; j < Config->ConfValueEnum("type",&Config->config_f); j++)
{
- ConfValue("type","name",j,TypeName,&Config->config_f);
+ Config->ConfValue("type","name",j,TypeName,&Config->config_f);
if (!strcmp(TypeName,this->oper))
{
- ConfValue("type","classes",j,Classes,&Config->config_f);
+ Config->ConfValue("type","classes",j,Classes,&Config->config_f);
char* myclass = strtok_r(Classes," ",&savept);
while (myclass)
{
- for (int k =0; k < ConfValueEnum("class",&Config->config_f); k++)
+ for (int k =0; k < Config->ConfValueEnum("class",&Config->config_f); k++)
{
- ConfValue("class","name",k,ClassName,&Config->config_f);
+ Config->ConfValue("class","name",k,ClassName,&Config->config_f);
if (!strcmp(ClassName,myclass))
{
- ConfValue("class","commands",k,CommandList,&Config->config_f);
+ Config->ConfValue("class","commands",k,CommandList,&Config->config_f);
mycmd = strtok_r(CommandList," ",&savept2);
while (mycmd)
{