Skip to content
This repository has been archived by the owner on Apr 1, 2018. It is now read-only.

Notification when you friend yourself #149

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,8 @@ var COMMANDS = {
return
}
if (friend == this) {
// Ignore silently
// Ignore not so silently that you just tried to friend yourself
send({cmd: 'warn', text: "Sorry you can't friend yourself... Might want to create another account and talk to them"}, this)
return
}
var channel = Math.random().toString(36).substr(2, 8)
Expand Down