aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorstonedDiscord <stoned@derpymail.org>2019-08-06 21:25:33 +0200
committerstonedDiscord <stoned@derpymail.org>2019-08-06 21:25:33 +0200
commit47eb36789e27440af3b86ebe6cb7f0f74ef53c8c (patch)
tree601745eb1991b558fe8c04bc9e5a74e860b7f4b7 /src
parentdd325de31e3502e20a5134a5358961d4e0f367f9 (diff)
numbered arguments for kick and ban torture
Diffstat (limited to 'src')
-rw-r--r--src/packet_distribution.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/packet_distribution.cpp b/src/packet_distribution.cpp
index 2bd26936..b79ec309 100644
--- a/src/packet_distribution.cpp
+++ b/src/packet_distribution.cpp
@@ -639,7 +639,7 @@ void AOApplication::server_packet_received(AOPacket *p_packet)
{
if (courtroom_constructed && f_contents.size() >= 1)
{
- call_notice(tr("You have been kicked from the server.\nReason: ") + f_contents.at(0));
+ call_notice(tr("You have been kicked from the server.\nReason: %1").arg(f_contents.at(0)));
construct_lobby();
destruct_courtroom();
}
@@ -648,7 +648,7 @@ void AOApplication::server_packet_received(AOPacket *p_packet)
{
if (courtroom_constructed && f_contents.size() >= 1)
{
- call_notice("You have been banned from the server.\nReason: " + f_contents.at(0));
+ call_notice(tr("You have been banned from the server.\nReason: %1").arg(f_contents.at(0)));
construct_lobby();
destruct_courtroom();
}
@@ -656,7 +656,7 @@ void AOApplication::server_packet_received(AOPacket *p_packet)
}
else if (header == "BD")
{
- call_notice(tr("You are banned on this server.\nReason: ") + f_contents.at(0));
+ call_notice(tr("You are banned on this server.\nReason: %1").arg(f_contents.at(0)));
}
else if (header == "ZZ")
{