mirror of
https://github.com/weechat/weechat.git
synced 2026-07-04 00:33:13 +02:00
irc: don't keep valid account names when account-notify is disabled
This commit is contained in:
@@ -318,7 +318,10 @@ IRC_PROTOCOL_CALLBACK(account)
|
||||
{
|
||||
if (ptr_nick->account)
|
||||
free (ptr_nick->account);
|
||||
ptr_nick->account = strdup (argv[2]);
|
||||
if (server->cap_account_notify)
|
||||
ptr_nick->account = strdup (argv[2]);
|
||||
else
|
||||
ptr_nick->account = strdup ("*");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user