diff options
Diffstat (limited to 'modules/commands/os_defcon.cpp')
-rw-r--r-- | modules/commands/os_defcon.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/commands/os_defcon.cpp b/modules/commands/os_defcon.cpp index 906c64e6d..a41b104c9 100644 --- a/modules/commands/os_defcon.cpp +++ b/modules/commands/os_defcon.cpp @@ -541,7 +541,7 @@ public: void OnChannelSync(Channel *c) override { if (DConfig.Check(DEFCON_FORCE_CHAN_MODES)) - c->SetModes(Config->GetClient("OperServ"), false, "%s", DConfig.chanmodes.c_str()); + c->SetModes(Config->GetClient("OperServ"), false, DConfig.chanmodes); } }; @@ -557,7 +557,7 @@ static void runDefCon() Log(OperServ, "operserv/defcon") << "DEFCON: setting " << DConfig.chanmodes << " on all channels"; DefConModesSet = true; for (const auto &[_, chan] : ChannelList) - chan->SetModes(OperServ, false, "%s", DConfig.chanmodes.c_str()); + chan->SetModes(OperServ, false, DConfig.chanmodes); } } } @@ -573,7 +573,7 @@ static void runDefCon() { Log(OperServ, "operserv/defcon") << "DEFCON: setting " << newmodes << " on all channels"; for (const auto &[_, chan] : ChannelList) - chan->SetModes(OperServ, true, "%s", newmodes.c_str()); + chan->SetModes(OperServ, true, newmodes); } } } |