From 35779938882c9328858d8494cc62f01fda153bd8 Mon Sep 17 00:00:00 2001 From: Florian Zeitz Date: Sat, 8 Aug 2009 22:17:09 +0200 Subject: [PATCH] Show joins and leaves --- js/main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/main.js b/js/main.js index 2647add..5329f8b 100644 --- a/js/main.js +++ b/js/main.js @@ -112,8 +112,10 @@ function handlePresence(presence) { if (type == 'unavailable') { element = document.getElementById(nick); roster_list.removeChild(element); + $('#chat').append('
' + nick + ' left the groupchat
'); } else { roster_list.innerHTML += '
  • ' + nick + '
  • '; + $('#chat').append('
    ' + nick + ' joined the groupchat
    '); } return true; -- 2.39.5