Skip to content

Commit

Permalink
Now only leaders and admins can use
Browse files Browse the repository at this point in the history
  • Loading branch information
team1257Simon authored Jul 27, 2016
1 parent c8e3fac commit 019f97b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -1897,7 +1897,7 @@ exports.commands = {
this.splitTarget(target);
let targetUser = this.targetUser;
let name = this.targetUserName;
if (!user.can('lock', targetUser) && !user.can('ban', targetUser, room)) {
if (!user.can("rangeban")) {
this.errorReply("/unlogtext - Access denied.");
return false;
}
Expand All @@ -1912,7 +1912,7 @@ exports.commands = {
}
this.addModCommand("" + targetUser.name + "'s messages were deleted from the log in room " + room.id + " by " + user.name + ".");
},
unlogtexthelp: ["/unlogtext [username] - Removes a locked or banned user's messages from chat and clears them from the room's log. Requires: % (global only), @ * # & ~"],
unlogtexthelp: ["/unlogtext [username] - Removes a locked or banned user's messages from chat and clears them from the room's log. Requires: & ~"],

banwords: 'banword',
banword: {
Expand Down

0 comments on commit 019f97b

Please sign in to comment.