Skip to content

Commit a76f201

Browse files
Merge pull request #115 from Cyborger1/add-predict-to-clan
Add predict option to clan chat / guest clan chat
2 parents aac1119 + 0701f60 commit a76f201

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/com/botdetector/BotDetectorPlugin.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -697,13 +697,15 @@ private void onMenuEntryAdded(MenuEntryAdded event)
697697
return;
698698
}
699699

700-
int groupId = WidgetInfo.TO_GROUP(event.getActionParam1());
700+
final int componentId = event.getActionParam1();
701+
int groupId = WidgetInfo.TO_GROUP(componentId);
701702
String option = event.getOption();
702703

703704
if (groupId == WidgetInfo.FRIENDS_LIST.getGroupId() || groupId == WidgetInfo.FRIENDS_CHAT.getGroupId() ||
704705
groupId == WidgetInfo.CHATBOX.getGroupId() && !KICK_OPTION.equals(option) ||
705706
groupId == WidgetInfo.RAIDING_PARTY.getGroupId() || groupId == WidgetInfo.PRIVATE_CHAT_MESSAGE.getGroupId() ||
706-
groupId == WidgetInfo.IGNORE_LIST.getGroupId())
707+
groupId == WidgetInfo.IGNORE_LIST.getGroupId() ||
708+
componentId == WidgetInfo.CLAN_MEMBER_LIST.getId() || componentId == WidgetInfo.CLAN_GUEST_MEMBER_LIST.getId())
707709
{
708710
if (!AFTER_OPTIONS.contains(option) || (option.equals(DELETE_OPTION) && groupId != WidgetInfo.IGNORE_LIST.getGroupId()))
709711
{

0 commit comments

Comments
 (0)