mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-09-16 10:06:54 +00:00
3.5.325. Tab complete commands. CSS tweaks. Fix chat lines not updating.
This commit is contained in:
parent
1a52caab6b
commit
6ab4bd64a8
12 changed files with 354 additions and 34 deletions
|
@ -1567,7 +1567,7 @@ FFZ.prototype._update_alias = function(user) {
|
|||
|
||||
FFZ.chat_commands.purge = function(room, args) {
|
||||
if ( ! args || ! args.length )
|
||||
return "Purge Usage: /p username [ban reason]";
|
||||
return "Usage: /purge <user> [ban reason]";
|
||||
|
||||
var name = args.shift(),
|
||||
reason = args.length ? args.join(" ") : "";
|
||||
|
@ -1575,25 +1575,34 @@ FFZ.chat_commands.purge = function(room, args) {
|
|||
room.room.send("/timeout " + name + " 1 " + reason, true);
|
||||
}
|
||||
|
||||
FFZ.chat_commands.purge.label = '/purge <user> <i>[reason]</i>';
|
||||
FFZ.chat_commands.purge.info = 'Ban User for 1 Second';
|
||||
|
||||
FFZ.chat_commands.p = function(room, args) {
|
||||
return FFZ.chat_commands.purge.call(this, room, args);
|
||||
}
|
||||
|
||||
FFZ.chat_commands.p.enabled = function() { return this.settings.short_commands; }
|
||||
FFZ.chat_commands.p.short = true;
|
||||
FFZ.chat_commands.p.label = '/p <user> <i>[reason]</i>';
|
||||
FFZ.chat_commands.p.info = 'Ban User for 1 Second';
|
||||
|
||||
|
||||
FFZ.chat_commands.t = function(room, args) {
|
||||
if ( ! args || ! args.length )
|
||||
return "Timeout Usage: /t username [duration] [ban reason]";
|
||||
return "Usage: /t <user> [duration=600] [reason]";
|
||||
room.room.send("/timeout " + args.join(" "), true);
|
||||
}
|
||||
|
||||
FFZ.chat_commands.t.enabled = function() { return this.settings.short_commands; }
|
||||
FFZ.chat_commands.t.short = true;
|
||||
FFZ.chat_commands.t.label = '/t <user> <i>[duration=600] [reason]</i>';
|
||||
FFZ.chat_commands.t.info = 'Temporarily Ban User';
|
||||
|
||||
|
||||
FFZ.chat_commands.b = function(room, args) {
|
||||
if ( ! args || ! args.length )
|
||||
return "Ban Usage: /b username [ban reason]";
|
||||
return "Usage: /b <user> [reason]";
|
||||
|
||||
var name = args.shift(),
|
||||
reason = args.length ? args.join(" ") : "";
|
||||
|
@ -1602,11 +1611,14 @@ FFZ.chat_commands.b = function(room, args) {
|
|||
}
|
||||
|
||||
FFZ.chat_commands.b.enabled = function() { return this.settings.short_commands; }
|
||||
FFZ.chat_commands.b.short = true;
|
||||
FFZ.chat_commands.b.label = '/b <user> <i>[reason]</i>';
|
||||
FFZ.chat_commands.b.info = 'Permanently Ban User';
|
||||
|
||||
|
||||
FFZ.chat_commands.u = function(room, args) {
|
||||
if ( ! args || ! args.length )
|
||||
return "Unban Usage: /u username [more usernames separated by spaces]";
|
||||
return "Usage: /u <user> [more usernames separated by spaces]";
|
||||
|
||||
if ( args.length > 10 )
|
||||
return "Please only unban up to 10 users at once.";
|
||||
|
@ -1618,4 +1630,7 @@ FFZ.chat_commands.u = function(room, args) {
|
|||
}
|
||||
}
|
||||
|
||||
FFZ.chat_commands.u.enabled = function() { return this.settings.short_commands; }
|
||||
FFZ.chat_commands.u.enabled = function() { return this.settings.short_commands; }
|
||||
FFZ.chat_commands.u.short = true;
|
||||
FFZ.chat_commands.u.label = '/u <user> <i>[<user> ...]';
|
||||
FFZ.chat_commands.u.info = 'Unban User(s)';
|
Loading…
Add table
Add a link
Reference in a new issue