summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/irc/irc-protocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c
index 5fcb5527f..7ec067cb4 100644
--- a/src/plugins/irc/irc-protocol.c
+++ b/src/plugins/irc/irc-protocol.c
@@ -173,7 +173,7 @@ irc_protocol_nick_address (struct t_irc_server *server,
string[0] = '\0';
- if (nickname && address && (strcmp (nickname, address) != 0))
+ if (nickname && address && address[0] && (strcmp (nickname, address) != 0))
{
/* display nick and address if they are different */
snprintf (string, sizeof (string),