From 6691ee7127b21221c7ee2cbcccd1b11bcb8929b4 Mon Sep 17 00:00:00 2001 From: TimePath Date: Fri, 6 Apr 2018 19:54:31 +1000 Subject: [PATCH] Chat: reverse command order --- qcsrc/client/main.qc | 2 +- qcsrc/menu/command/notice.qc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qcsrc/client/main.qc b/qcsrc/client/main.qc index 20c50f577..c0c04e7cd 100644 --- a/qcsrc/client/main.qc +++ b/qcsrc/client/main.qc @@ -933,7 +933,7 @@ void CSQC_Parse_Print(string strMessage) } s = strcat("^3", s); } - localcmd("\n", autocvar__cl_hook_print, " ", itos(flags), " ", console_encode(s), "\n"); + localcmd("\n", autocvar__cl_hook_print, " ", console_encode(s), " ", itos(flags), "\n"); } else { print(ColorTranslateRGB(strMessage)); } diff --git a/qcsrc/menu/command/notice.qc b/qcsrc/menu/command/notice.qc index ba8dc327b..8fee54d4e 100644 --- a/qcsrc/menu/command/notice.qc +++ b/qcsrc/menu/command/notice.qc @@ -17,8 +17,8 @@ GENERIC_COMMAND(notice, "Append a notice to chat") { case CMD_REQUEST_COMMAND: { - int flags = stoi(argv(1)); - string s = console_decode(substring(command, argv_start_index(2), argv_end_index(-1))); + string s = console_decode(substring(command, argv_start_index(1), argv_end_index(1) - argv_start_index(1))); + int flags = stoi(argv(2)); s = ColorTranslateRGB(s); string prefix = (flags & NOTICE_CHAT) ? "\{3}" : ""; if (!(flags & NOTICE_SILENT)) { -- 2.39.2