From 21240f8ab2fd41c76f50b64e3b3a945f50b25b5e Mon Sep 17 00:00:00 2001 From: forester302 <109694860+forester302@users.noreply.github.com> Date: Mon, 1 Jan 2024 10:24:49 +0000 Subject: [PATCH] Allow commands not to be signed (#1277) --- src/client/chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/chat.js b/src/client/chat.js index 3571b73..d35cbab 100644 --- a/src/client/chat.js +++ b/src/client/chat.js @@ -371,7 +371,7 @@ module.exports = function (client, options) { command, timestamp: options.timestamp, salt: options.salt, - argumentSignatures: client.profileKeys ? signaturesForCommand(command, options.timestamp, options.salt, options.preview, acknowledgements) : [], + argumentSignatures: (client.profileKeys && client._session) ? signaturesForCommand(command, options.timestamp, options.salt, options.preview, acknowledgements) : [], messageCount: client._lastSeenMessages.pending, acknowledged })