nope
This commit is contained in:
parent
2bc7f45fb6
commit
0534545b53
|
@ -13,7 +13,6 @@ module.exports = (lib) => {
|
|||
var level = (args[2]>=100)?100:args[2];
|
||||
|
||||
if( name in e.channel.names ) {
|
||||
console.log(lib.admins);
|
||||
lib.bot.whois(name.trim(), e.network, (err, data) => {
|
||||
if(!err) {
|
||||
if(data.account !== null) {
|
||||
|
@ -50,11 +49,7 @@ module.exports = (lib) => {
|
|||
e.reply('no permission, min level 100 required');
|
||||
}
|
||||
else {
|
||||
var user;
|
||||
if(!(user = e.message.match(/^\!level(?: +@(.*))?/i)[1]))
|
||||
user = e.user.getNick();
|
||||
else
|
||||
user = user.trim();
|
||||
var user = (!(user = e.message.match(/^\!level(?: +@(.*))?/i)[1]))?e.user.getNick():user.trim();
|
||||
lib.getUserlevel(user, e.network, e.channel.getName(), cb => {
|
||||
e.reply("level from "+user+": "+cb.level+" (Channel: "+cb.channel+" DB: "+cb.db+")");
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user