Übersich..was?

This commit is contained in:
Flummi 2016-10-25 14:55:22 +02:00
parent 4600d8e670
commit 5f653ff650

View File

@ -5,11 +5,7 @@ module.exports = (lib) => {
level: 0,
active: 1,
func: (e) => {
if(!(user = e.message.match(/^\!user( +@(.*))?/i)[2]))
user = e.user.getNick();
else
user = user.trim();
lib.bot.whois(user, e.network, (err, data) => {
lib.bot.whois(!(user = e.message.match(/^\!user( +@(.*))?/i)[2])?e.user.getNick():user.trim(), e.network, (err, data) => {
e.reply(data);
});
},