mirror of https://github.com/calzoneman/sync.git
Permissions check for /kick
This commit is contained in:
parent
81d6b4873d
commit
1c2728c9f8
|
@ -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…
Reference in New Issue