summary refs log tree commit diff stats
path: root/src/common/userlist.c
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2014-04-06 15:22:51 -0400
committerTingPing <tingping@tingping.se>2014-04-06 15:33:22 -0400
commitb41bd594b0324c4aa0d02ec35ad1efdcf2d4f6db (patch)
tree41a0e185a4d730f4100ffeb979bd4d4f28172b9f /src/common/userlist.c
parent0f828dd74f9ea81fe70c8a101a7aa7c40737437a (diff)
Add account to Join event
Also reorganizes some logic. The account will usually be NULL unless
extended-join capability enabled.

Closes #934
Diffstat (limited to 'src/common/userlist.c')
-rw-r--r--src/common/userlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/userlist.c b/src/common/userlist.c
index 7565fcd4..e08cb857 100644
--- a/src/common/userlist.c
+++ b/src/common/userlist.c
@@ -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);