if (type == 'unavailable') {
element = document.getElementById(nick);
roster_list.removeChild(element);
+ $('#chat').append('<div class="msg"><span class="server">' + nick + ' left the groupchat</span></div>');
} else {
roster_list.innerHTML += '<li id="' + nick + '" onclick="addBubble(' + "'" + nick + "')" + '" >' + nick + '</li>';
+ $('#chat').append('<div class="msg"><span class="server">' + nick + ' joined the groupchat</span></div>');
}
return true;