summaryrefslogtreecommitdiff
path: root/src/messages.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-01-06 14:41:54 +0000
committerSadie Powell <sadie@witchery.services>2024-01-08 13:11:50 +0000
commit5db79c1e242d4c06d1aeb2b09f99b8254b7fb5de (patch)
tree05beddb85b9a11c8c674d78f7405f50072f18f7b /src/messages.cpp
parenta4dddfd5f121c9cc74e05e08a568c6a9febfd56f (diff)
Add a non-formatting overload of User::SetModesInternal.
Diffstat (limited to 'src/messages.cpp')
-rw-r--r--src/messages.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/messages.cpp b/src/messages.cpp
index a0f5f98d6..a57dcb6f9 100644
--- a/src/messages.cpp
+++ b/src/messages.cpp
@@ -229,7 +229,7 @@ void Message::Mode::Run(MessageSource &source, const std::vector<Anope::string>
User *u = User::Find(params[0]);
if (u)
- u->SetModesInternal(source, "%s", buf.substr(1).c_str());
+ u->SetModesInternal(source, buf.substr(1));
}
}