Skip to content

Commit d069202

Browse files
committed
fix(psay): Prevent incorrect target reply
1 parent 36ecaad commit d069202

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

addons/sourcemod/scripting/CustomChatColors.sp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2232,8 +2232,8 @@ public Action Command_SmPsay(int client, int args)
22322232
return Plugin_Handled;
22332233

22342234
SendPrivateChat(client, target, text[len]);
2235-
g_iClientFastReply[target] = client;
2236-
g_iClientFastReply[client] = target;
2235+
g_iClientFastReply[target] = GetClientUserId(client);
2236+
g_iClientFastReply[client] = GetClientUserId(target);
22372237

22382238
return Plugin_Stop;
22392239
}
@@ -2266,7 +2266,7 @@ public Action Command_SmPsayReply(int client, int args)
22662266
Format(message, sizeof(message), "%s %s", message, arg);
22672267
}
22682268

2269-
int target = g_iClientFastReply[client];
2269+
int target = GetClientOfUserId(g_iClientFastReply[client]);
22702270
if (target == -1)
22712271
return Plugin_Handled;
22722272

addons/sourcemod/scripting/include/ccc.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#define CCC_V_MAJOR "7"
1313
#define CCC_V_MINOR "4"
14-
#define CCC_V_PATCH "15"
14+
#define CCC_V_PATCH "16"
1515

1616
#define CCC_VERSION CCC_V_MAJOR..."."...CCC_V_MINOR..."."...CCC_V_PATCH
1717

0 commit comments

Comments
 (0)