From 0f3f8285fe3dea1ce77340d1dce12ee73337338c Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 30 Jan 2022 23:16:23 +0000 Subject: Fix a bunch of weird uses of .c_str(). --- src/modules/m_ojoin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_ojoin.cpp') 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) { } -- cgit v1.3.1-10-gc9f91