Merge pull request #97 from BytewaveMLP/friend-request-message

Add feedback for when a friend request is sent
This commit is contained in:
Eliot Partridge
2019-09-08 23:34:07 -05:00
committed by GitHub
+2
View File
@@ -141,6 +141,8 @@ export class FriendsService {
pending.add(target.accountId); pending.add(target.accountId);
this.pending.set(client.accountId, pending); this.pending.set(client.accountId, pending);
client.reporter.systemLog(`Friend request [${target.accountId}]`); client.reporter.systemLog(`Friend request [${target.accountId}]`);
saySystem(client, `Friend request sent to ${getEntityName(target.pony, client)}`);
} }
private acceptInvitation(client: IClient, friend: IClient, notificationId: number) { private acceptInvitation(client: IClient, friend: IClient, notificationId: number) {
client.reporter.systemLog(`Friend request accepted by [${friend.accountId}]`); client.reporter.systemLog(`Friend request accepted by [${friend.accountId}]`);