Commit 56baddc9 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Make groupAction take an arbitrary parameter.

parent 1eb77167
......@@ -712,16 +712,15 @@ ServerConnection.prototype.userMessage = function(kind, dest, value, noecho) {
* groupAction sends a request to act on the current group.
*
* @param {string} kind
* - One of 'clearchat', 'lock', 'unlock', 'record' or 'unrecord'.
* @param {string} [message] - An optional user-readable message.
* @param {any} [data]
*/
ServerConnection.prototype.groupAction = function(kind, message) {
ServerConnection.prototype.groupAction = function(kind, data) {
this.send({
type: 'groupaction',
source: this.id,
kind: kind,
username: this.username,
value: message,
value: data,
});
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment