removed hardcoded channel x)

This commit is contained in:
Flummi 2016-09-15 19:43:57 +02:00
parent 1d390e01b3
commit cb00071105

View File

@ -11,8 +11,8 @@ module.exports = (lib) => {
return;
}
lib.bot.whois(key, e.network, (err, data) => {
if(data.channels['#kbot-dev']) {
var h = modesToString(data.channels['#kbot-dev']), q = "";
if(data.channels[e.channel]) {
var h = modesToString(data.channels[e.channel]), q = "";
if(lib.admins[data.account])
q = levelToModes(lib.admins[data.account].level);
var diff = lib.groupUserModes(userModeDiff(h, q));