Actually check if they're a friend..

This commit is contained in:
Spencer 2018-05-18 12:24:04 -04:00 committed by Alexander Meech
parent 75433e64df
commit 28174d5b2e
1 changed files with 1 additions and 1 deletions

View File

@ -611,7 +611,7 @@ public class MessageManager extends MiniClientPlugin<ClientMessage>
}
else
{
if (_preferences.get(to).isActive(Preference.FRIEND_MESSAGES_ONLY)) {
if (_preferences.get(to).isActive(Preference.FRIEND_MESSAGES_ONLY) && (friend == null || friend.Status != FriendStatusType.Accepted)) {
sender.sendMessage(F.main(getName(), F.name(to.getName()) + " only allows messages from friends."));
return;
}