aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_ojoin.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-01-30 23:16:23 +0000
committerGravatar Sadie Powell2022-01-30 23:16:23 +0000
commit0f3f8285fe3dea1ce77340d1dce12ee73337338c (patch)
tree556b0fd3bbe29a8b67d187eaecb5596fe0b7edce /src/modules/m_ojoin.cpp
parentMerge branch 'insp3' into master. (diff)
downloadinspircd++-0f3f8285fe3dea1ce77340d1dce12ee73337338c.tar.gz
inspircd++-0f3f8285fe3dea1ce77340d1dce12ee73337338c.tar.bz2
inspircd++-0f3f8285fe3dea1ce77340d1dce12ee73337338c.zip
Fix a bunch of weird uses of .c_str().
Diffstat (limited to 'src/modules/m_ojoin.cpp')
-rw-r--r--src/modules/m_ojoin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_ojoin.cpp b/src/modules/m_ojoin.cpp
index 780f41360..caac9d0ed 100644
--- a/src/modules/m_ojoin.cpp
+++ b/src/modules/m_ojoin.cpp
@@ -116,7 +116,7 @@ public:
ModuleOjoin()
: Module(VF_VENDOR, "Adds the /OJOIN command which allows server operators to join a channel and receive the server operator-only Y (official-join) channel prefix mode.")
- , np(this, ServerInstance->Config->ConfValue("ojoin")->getString("prefix").c_str()[0])
+ , np(this, ServerInstance->Config->ConfValue("ojoin")->getString("prefix", "\0", 1, 1)[0])
, mycommand(this, np)
{
}