On user join, add to list.

This commit is contained in:
Tristan B. Kildaire 2020-10-17 14:15:48 +02:00
parent b77c7bbf1b
commit e164054849
1 changed files with 6 additions and 0 deletions

View File

@ -117,8 +117,14 @@ public final class Connection : Thread
else if(subType == 1)
{
string username = cast(string)data[2..data.length];
/* Show joined message */
textArea.add(new Label(("--> "~username~" joined the channel")));
textArea.showAll();
/* Add the joined user to the members list */
users.add(new Label(username));
users.showAll();
}
/* TODO: Unknown */
else