aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_permchannels.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-02-06 01:25:25 +0000
committerGravatar Sadie Powell2020-02-06 01:53:16 +0000
commit8d9b0e75700d35a00066c6dad8670fa8e5a438a3 (patch)
tree98696b3d05a5bc2d56f17b606d1f32116c1adace /src/modules/m_permchannels.cpp
parentMake WritePID read directly from the config. (diff)
downloadinspircd++-8d9b0e75700d35a00066c6dad8670fa8e5a438a3.tar.gz
inspircd++-8d9b0e75700d35a00066c6dad8670fa8e5a438a3.tar.bz2
inspircd++-8d9b0e75700d35a00066c6dad8670fa8e5a438a3.zip
In C++11 [io]fstream has std::string constructors; use them.
Diffstat (limited to 'src/modules/m_permchannels.cpp')
-rw-r--r--src/modules/m_permchannels.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_permchannels.cpp b/src/modules/m_permchannels.cpp
index 3863470c8..1b572a574 100644
--- a/src/modules/m_permchannels.cpp
+++ b/src/modules/m_permchannels.cpp
@@ -69,7 +69,7 @@ static bool WriteDatabase(PermChannel& permchanmode, Module* mod, bool save_list
return true;
std::string permchannelsnewconf = permchannelsconf + ".tmp";
- std::ofstream stream(permchannelsnewconf.c_str());
+ std::ofstream stream(permchannelsnewconf);
if (!stream.is_open())
{
ServerInstance->Logs.Log(MODNAME, LOG_DEFAULT, "Cannot create database \"%s\"! %s (%d)", permchannelsnewconf.c_str(), strerror(errno), errno);