Add check for clan members > 0 when inserting icon

To prevent caching clan icons after world hopping/logout when chat history sends the messages.
This commit is contained in:
Tomas Slusny
2018-02-20 13:03:57 -05:00
parent 04cf082b9c
commit df7f4a6a7d

View File

@@ -151,7 +151,7 @@ public class ClanChatPlugin extends Plugin
return; return;
} }
if (setMessage.getType() == ChatMessageType.CLANCHAT) if (setMessage.getType() == ChatMessageType.CLANCHAT && client.getClanChatCount() > 0)
{ {
insertClanRankIcon(setMessage); insertClanRankIcon(setMessage);
} }