Skip to content

Commit d54601e

Browse files
committed
feat: toast when kicking non-friends
1 parent 0f5d527 commit d54601e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/base/lobby/customFriendsOnly.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ wrap(function friendsOnly() {
2323
function joined({ username }) {
2424
if (this.canceled || !flag || fn.isFriend(username)) return;
2525
debug(`Kicked: ${username}`);
26-
// TODO: Toast
26+
fn.errorToast({
27+
title: '[Match] Banned User',
28+
text: `'${username}' has been banned from custom match!`,
29+
});
2730
this.canceled = true;
2831
global('banUser')();
2932
}

0 commit comments

Comments
 (0)