Add permissions editor
This commit is contained in:
parent
8c47221a22
commit
fd6b95920a
5 changed files with 40 additions and 20 deletions
|
|
@ -2329,7 +2329,7 @@ Channel.prototype.handleMoveFilter = function (user, data) {
|
|||
/**
|
||||
* Handles a user message to change the channel permissions
|
||||
*/
|
||||
Channel.prototype.handleUpdatePermissions = function (user, perms) {
|
||||
Channel.prototype.handleSetPermissions = function (user, perms) {
|
||||
if (user.rank < 3) {
|
||||
user.kick("Attempted setPermissions as a non-admin");
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue