From 6339884ba673207c398b881d96bbed406d3aeacd Mon Sep 17 00:00:00 2001 From: PowerOfMad Date: Fri, 29 Sep 2017 21:02:30 +0300 Subject: [PATCH] Promoters count as grey users even with host role #142 FIXED my own posted bug which takes g.role like plot.member (750) or promoter (500) and overwrites u.role. For example our room Host and CoHost got g.role PROMOTER and they could`nt use any bot function because g.role which was lower than Promoter (500) < RDJ (1000) took control instead u.role (HOST,COHOST) --- basicBot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basicBot.js b/basicBot.js index 4c9691ad..81c3283c 100644 --- a/basicBot.js +++ b/basicBot.js @@ -484,7 +484,7 @@ else u = API.getUser(obj); if (botCreatorIDs.indexOf(u.id) > -1) return 9999; - if (u.gRole == 0) return u.role; + if (u.gRole < 1000) return u.role; else { switch (u.gRole) { case 3: