modified: src/trigger/umode.js

This commit is contained in:
Flummi 2016-09-05 11:25:29 +00:00
parent 8a3e6a074d
commit 4ba72dcb1e

View File

@ -7,7 +7,7 @@ module.exports = (bot, trigger, lib) => {
func: (e) => { func: (e) => {
var modes = e.message.split(' '); var modes = e.message.split(' ');
var user = modes[modes.length - 1]; var user = modes[modes.length - 1];
if(user.toLowerCase() != 'f0ck') { if(user.toLowerCase() != bot.me.nick.toLowerCase()) {
if(user.match(/(\+|-)/)) if(user.match(/(\+|-)/))
user = e.user.getNick(); user = e.user.getNick();
else else