summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/irc/irc-protocol.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c
index 625d34583..509fc9d6e 100644
--- a/src/plugins/irc/irc-protocol.c
+++ b/src/plugins/irc/irc-protocol.c
@@ -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 ("*");
}
}