mirror of
https://github.com/weechat/weechat.git
synced 2026-07-01 15:26:37 +02:00
irc: shorten code in account callback
This commit is contained in:
@@ -318,10 +318,8 @@ IRC_PROTOCOL_CALLBACK(account)
|
||||
{
|
||||
if (ptr_nick->account)
|
||||
free (ptr_nick->account);
|
||||
if (server->cap_account_notify)
|
||||
ptr_nick->account = strdup (argv[2]);
|
||||
else
|
||||
ptr_nick->account = strdup ("*");
|
||||
ptr_nick->account = (server->cap_account_notify) ?
|
||||
strdup (argv[2]) : strdup ("*");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user