Commit 6d250bfa authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Add warnings about disclosing IP addresses.

parent c38c5555
...@@ -2252,6 +2252,10 @@ function fileTransferBox(up, id, fileid, f) { ...@@ -2252,6 +2252,10 @@ function fileTransferBox(up, id, fileid, f) {
} }
let status = document.createElement('div'); let status = document.createElement('div');
status.id = 'status-' + fullid; status.id = 'status-' + fullid;
if(!up) {
status.textContent =
'(Choosing "Accept" will disclose your IP address.)';
}
let div = document.createElement('div'); let div = document.createElement('div');
div.id = 'file-' + fullid; div.id = 'file-' + fullid;
div.appendChild(p); div.appendChild(p);
...@@ -3212,7 +3216,7 @@ commands.unraise = { ...@@ -3212,7 +3216,7 @@ commands.unraise = {
commands.sendfile = { commands.sendfile = {
parameters: 'user', parameters: 'user',
description: 'send file', description: 'send a file (this will disclose your IP address)',
f: (c, r) => { f: (c, r) => {
let p = parseCommand(r); let p = parseCommand(r);
if(!p[0]) if(!p[0])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment