]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
GACK! you cannot ConfigReader::ReadValue to a const char*! you need to read to a...
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 16 Oct 2006 12:45:35 +0000 (12:45 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 16 Oct 2006 12:45:35 +0000 (12:45 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5471 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_dccallow.cpp

index 0e712fb1c21501b652fb9a4464a30701a692994f..e0d0b96e16b3442d33e2b1ed693681a4059e4a1b 100644 (file)
@@ -333,12 +333,12 @@ class ModuleDCCAllow : public Module
                    irc::string type = tokens[1].c_str();
                    ServerInstance->Log(DEBUG, "m_dccallow.so: got DCC type %s", type.c_str());
 
-                   const char* blockchat = Conf->ReadValue("dccallow", "blockchat", 0).c_str();
+                   bool blockchat = Conf->ReadValue("dccallow", "blockchat", 0);
                    ServerInstance->Log(DEBUG, "m_dccallow.so: got blockchat: %s", blockchat);
 
                    if (type == "SEND")
                    {
-                       const char* defaultaction = Conf->ReadValue("dccallow", "action", 0).c_str();
+                       std::string defaultaction = Conf->ReadValue("dccallow", "action", 0);
                        std::string filename = tokens[2];
                        
                        if (strcmp(defaultaction, "allow") == 0)