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:
@@ -151,7 +151,7 @@ public class ClanChatPlugin extends Plugin
|
||||
return;
|
||||
}
|
||||
|
||||
if (setMessage.getType() == ChatMessageType.CLANCHAT)
|
||||
if (setMessage.getType() == ChatMessageType.CLANCHAT && client.getClanChatCount() > 0)
|
||||
{
|
||||
insertClanRankIcon(setMessage);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user