summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-16 12:45:35 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-16 12:45:35 +0000
commit8c9976bb52f799154a7b221723bb501890e0bde2 (patch)
tree58ee626884c7d5ea4b0b4417fc6dcc85d1780eb8
parent9d5915f0d835e4eb988578e95b22d5309e0001de (diff)
GACK! you cannot ConfigReader::ReadValue to a const char*! you need to read to a string :P
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5471 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_dccallow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp
index 0e712fb1c..e0d0b96e1 100644
--- a/src/modules/m_dccallow.cpp
+++ b/src/modules/m_dccallow.cpp
@@ -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)