diff options
author | Sadie Powell <sadie@witchery.services> | 2024-01-08 14:14:37 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-01-08 14:14:37 +0000 |
commit | 5b23fae8bfb40ae23a4cd206b4b58cb076600609 (patch) | |
tree | b7f045e18dafbc5d41f1f4f3635e54c5f4ed8164 /modules/commands/os_defcon.cpp | |
parent | aac4b0f0a3a0b615ed834dc2a61d472044906c79 (diff) |
Add a string overload of Channel::SetModes.
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); } } } |