Implement message for locked groups.

This commit is contained in:
Juliusz Chroboczek
2020-09-18 11:40:00 +02:00
parent e824b93584
commit f8ae908d7a
5 changed files with 25 additions and 11 deletions
+3 -1
View File
@@ -419,11 +419,13 @@ ServerConnection.prototype.chat = function(username, kind, message) {
*
* @param {string} kind - One of "clearchat", "lock", "unlock", "record or
* "unrecord".
* @param {string} [message]
*/
ServerConnection.prototype.groupAction = function(kind) {
ServerConnection.prototype.groupAction = function(kind, message) {
this.send({
type: 'groupaction',
kind: kind,
value: message,
});
};
+1 -1
View File
@@ -1072,7 +1072,7 @@ function handleInput() {
displayError("You're not an operator");
return;
}
serverConnection.groupAction(cmd.slice(1));
serverConnection.groupAction(cmd.slice(1), rest);
return;
case '/record':
case '/unrecord':