mirror of
https://github.com/Spengreb/sync.git
synced 2026-05-14 03:32:06 +00:00
Permissions check for /kick
This commit is contained in:
parent
81d6b4873d
commit
1c2728c9f8
1 changed files with 2 additions and 1 deletions
|
|
@ -61,7 +61,8 @@ function handleKick(chan, user, args) {
|
|||
args[0] = args[0].toLowerCase();
|
||||
var kickee;
|
||||
for(var i = 0; i < chan.users.length; i++) {
|
||||
if(chan.users[i].name.toLowerCase() == args[0]) {
|
||||
if(chan.users[i].name.toLowerCase() == args[0] &&
|
||||
chan.getRank(chan.users[i].name) < user.rank) {
|
||||
kickee = chan.users[i];
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue