Skip to content
This repository has been archived by the owner on Oct 3, 2022. It is now read-only.

Commit

Permalink
Give mods bans
Browse files Browse the repository at this point in the history
Resolves #36
  • Loading branch information
bakape committed Dec 26, 2014
1 parent dfd62d2 commit aef660b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions admin/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,11 @@ var AddressView = Backbone.View.extend({
type: 'button',
val: 'Sel All'
}));
if (IDENT.auth == 'Admin')
$el.append($('<input/>', {
"class": 'ban',
type: 'button',
val: 'Ban'
}));
$el.append($('<input/>', {
"class": 'ban',
type: 'button',
val: 'Ban'
}));

$el.append(
'<br>',
Expand Down
2 changes: 1 addition & 1 deletion admin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function ban(m, mod, ip, key, type, sentence) {
}

okyaku.dispatcher[authcommon.BAN] = function (msg, client) {
if (!caps.can_administrate(client.ident))
if (!caps.can_moderate(client.ident))
return false;
var ip = msg[0];
var type = msg[1];
Expand Down

0 comments on commit aef660b

Please sign in to comment.