mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-12 16:50:19 +00:00
Add account to Join event
Also reorganizes some logic. The account will usually be NULL unless extended-join capability enabled. Closes #934
This commit is contained in:
@@ -416,7 +416,7 @@ userlist_add (struct session *sess, char *name, char *hostname,
|
||||
/* extended join info */
|
||||
if (sess->server->have_extjoin)
|
||||
{
|
||||
if (account && strcmp (account, "*") != 0)
|
||||
if (account && *account)
|
||||
user->account = strdup (account);
|
||||
if (realname && *realname)
|
||||
user->realname = strdup (realname);
|
||||
|
||||
Reference in New Issue
Block a user