mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-18 23:46:28 +01:00
Merge branch 'offline-friend' into 'dev'
Resolve #722 "Error sending friend request with offline user" See merge request morningstar/Arcturus-Community!264
This commit is contained in:
commit
8e9d043baf
@ -25,10 +25,6 @@ public class FriendRequestEvent extends MessageHandler {
|
||||
String username = this.packet.readString();
|
||||
Habbo habbo = Emulator.getGameServer().getGameClientManager().getHabbo(username);
|
||||
|
||||
if (habbo.getHabboInfo().getId() == this.client.getHabbo().getHabboInfo().getId()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (Emulator.getPluginManager().fireEvent(new UserRequestFriendshipEvent(this.client.getHabbo(), username, habbo)).isCancelled()) {
|
||||
this.client.sendResponse(new FriendRequestErrorComposer(2));
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user