From 54963bee7003f65f5412ea52133b1a00c3b0763e Mon Sep 17 00:00:00 2001 From: om Date: Tue, 4 Apr 2006 05:55:54 +0000 Subject: All new shiny config parser, there's probably some bugs there somewhere but hey...I've been up all night. make clean before you try and compile this. Really. And nobody dare complain git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3817 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/commands.cpp') diff --git a/src/commands.cpp b/src/commands.cpp index da4deff65..904b4277e 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -278,8 +278,8 @@ bool host_matches_everyone(const std::string &mask, userrec* user) char insanemasks[MAXBUF]; char buffer[MAXBUF]; char itrigger[MAXBUF]; - Config->ConfValue("insane","hostmasks",0,insanemasks,&Config->config_f); - Config->ConfValue("insane","trigger",0,itrigger,&Config->config_f); + Config->ConfValue(Config->config_data, "insane","hostmasks", 0, insanemasks, MAXBUF); + Config->ConfValue(Config->config_data, "insane","trigger", 0, itrigger, MAXBUF); if (*itrigger == 0) strlcpy(itrigger,"95.5",MAXBUF); if ((*insanemasks == 'y') || (*insanemasks == 't') || (*insanemasks == '1')) @@ -306,8 +306,8 @@ bool ip_matches_everyone(const std::string &ip, userrec* user) { char insanemasks[MAXBUF]; char itrigger[MAXBUF]; - Config->ConfValue("insane","ipmasks",0,insanemasks,&Config->config_f); - Config->ConfValue("insane","trigger",0,itrigger,&Config->config_f); + Config->ConfValue(Config->config_data, "insane","ipmasks",0,insanemasks,MAXBUF); + Config->ConfValue(Config->config_data, "insane","trigger",0,itrigger,MAXBUF); if (*itrigger == 0) strlcpy(itrigger,"95.5",MAXBUF); if ((*insanemasks == 'y') || (*insanemasks == 't') || (*insanemasks == '1')) @@ -331,8 +331,8 @@ bool nick_matches_everyone(const std::string &nick, userrec* user) { char insanemasks[MAXBUF]; char itrigger[MAXBUF]; - Config->ConfValue("insane","nickmasks",0,insanemasks,&Config->config_f); - Config->ConfValue("insane","trigger",0,itrigger,&Config->config_f); + Config->ConfValue(Config->config_data, "insane","nickmasks",0,insanemasks,MAXBUF); + Config->ConfValue(Config->config_data, "insane","trigger",0,itrigger,MAXBUF); if (*itrigger == 0) strlcpy(itrigger,"95.5",MAXBUF); if ((*insanemasks == 'y') || (*insanemasks == 't') || (*insanemasks == '1')) -- cgit v1.2.3