diff options
author | Sadie Powell <sadie@witchery.services> | 2024-01-08 14:14:57 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-01-08 14:14:57 +0000 |
commit | 0439e3b21bb197c80974074a614fe3cdf16ddf5a (patch) | |
tree | 704fbdf05031fad7be76c757988ee581530df43e /modules/commands/os_mode.cpp | |
parent | 5b23fae8bfb40ae23a4cd206b4b58cb076600609 (diff) |
Add a string overload of User::SetModes.
Diffstat (limited to 'modules/commands/os_mode.cpp')
-rw-r--r-- | modules/commands/os_mode.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/commands/os_mode.cpp b/modules/commands/os_mode.cpp index c0b16ce43..b432d4c15 100644 --- a/modules/commands/os_mode.cpp +++ b/modules/commands/os_mode.cpp @@ -154,7 +154,7 @@ public: source.Reply(NICK_X_NOT_IN_USE, target.c_str()); else { - u2->SetModes(source.service, "%s", modes.c_str()); + u2->SetModes(source.service, modes); source.Reply(_("Changed usermodes of \002%s\002 to %s."), u2->nick.c_str(), modes.c_str()); u2->SendMessage(source.service, _("\002%s\002 changed your usermodes to %s."), source.GetNick().c_str(), modes.c_str()); |