1
0
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:
Max Teufel
2015-01-24 14:23:29 +01:00
parent f379adffd0
commit eea6b07edc
3 changed files with 29 additions and 2 deletions
+4 -1
View File
@@ -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 ("*");
}
}