Merge branch 'f0ckdev' into 'master'
fix level < 0 See merge request !88
This commit is contained in:
commit
219eb6286f
|
@ -11,6 +11,7 @@ module.exports = (lib) => {
|
||||||
if(userlevel >= 100) {
|
if(userlevel >= 100) {
|
||||||
var name = args[1].replace('@','');
|
var name = args[1].replace('@','');
|
||||||
var level = (args[2]>=100)?100:args[2];
|
var level = (args[2]>=100)?100:args[2];
|
||||||
|
level = (level<0)?0:level;
|
||||||
|
|
||||||
if(name.toLowerCase() != lib.bot.me.nick.toLowerCase()) {
|
if(name.toLowerCase() != lib.bot.me.nick.toLowerCase()) {
|
||||||
if( name in e.channel.names ) {
|
if( name in e.channel.names ) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user