Actually check if they're a friend..
This commit is contained in:
parent
75433e64df
commit
28174d5b2e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user