aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--webclient/client.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/webclient/client.html b/webclient/client.html
index ab10cbc..61c7d4b 100644
--- a/webclient/client.html
+++ b/webclient/client.html
@@ -115,9 +115,10 @@ function reconnect(){
// Ignore msgid at word[5]
addRoomEntry(r,"message",[u,t,spl.rest[6]]);
} else if(type=="invite"){
- var r=spl.word[2];
+ var r=spl.word[2],inviter=spl.word[3];
roomlist.push(r);
roomlogs.set(r,[]);
+ addRoomEntry(r,"notice",[now(),"User '"+inviter+"' invited you to this room"]);
fetchRoomHistory(r);
updateRoomList();
} else if(type=="join"){