Make messenger friend list behave properly

This commit is contained in:
Alejandro 2019-08-05 19:52:28 +03:00
parent 85831a9df3
commit 274ea7f1ad
3 changed files with 3 additions and 2 deletions

View File

@ -52,6 +52,7 @@ public class MessengerBuddy implements Runnable, ISerialize {
try {
this.id = set.getInt("id");
this.username = set.getString("username");
this.look = set.getString("look");
this.relation = 0;
this.userOne = 0;
} catch (SQLException e) {

View File

@ -36,7 +36,7 @@ public class FriendsComposer extends MessageComposer {
this.response.appendInt(row.getValue().getGender().equals(HabboGender.M) ? 0 : 1);
this.response.appendBoolean(row.getValue().getOnline() == 1);
this.response.appendBoolean(row.getValue().inRoom()); //IN ROOM
this.response.appendString(row.getValue().getLook());
this.response.appendString(row.getValue().getOnline() == 1 ? row.getValue().getLook() : "");
this.response.appendInt(0);
this.response.appendString(row.getValue().getMotto());
this.response.appendString("");

View File

@ -62,7 +62,7 @@ public class UserSearchResultComposer extends MessageComposer {
this.response.appendBoolean(false);
this.response.appendString("");
this.response.appendInt(1);
this.response.appendString(buddy.getLook());
this.response.appendString(buddy.getOnline() == 1 ? buddy.getLook() : "");
this.response.appendString("");
}