summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/irc/core/irc-expandos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/core/irc-expandos.c b/src/irc/core/irc-expandos.c
index b877195b..6acfed73 100644
--- a/src/irc/core/irc-expandos.c
+++ b/src/irc/core/irc-expandos.c
@@ -66,7 +66,7 @@ static char *expando_userhost(SERVER_REC *server, void *item, int *free_ret)
/* haven't received userhost reply yet. guess something */
*free_ret = TRUE;
- if (server == NULL)
+ if (ircserver == NULL)
username = settings_get_str("user_name");
else
username = ircserver->connrec->username;