diff options
author | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-04 05:55:54 +0000 |
---|---|---|
committer | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-04 05:55:54 +0000 |
commit | 54963bee7003f65f5412ea52133b1a00c3b0763e (patch) | |
tree | d36a4fac2a323cf7be8a42312dc95fabb4924500 /src/commands.cpp | |
parent | 7db1335b25f6a6cc884368138df4d16a1cafd493 (diff) |
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
Diffstat (limited to 'src/commands.cpp')
-rw-r--r-- | src/commands.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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')) |