summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-06-10 20:56:24 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-06-10 20:56:24 +0000
commit80b8d0628aa39494ee79a533be6965074f00384b (patch)
treeea288853041b46dea70834ce217f53cf94ebeae5 /src
parentb2a7ac4686523e380190e075fd8d9d5b1dc2aa5c (diff)
downloadirssi-80b8d0628aa39494ee79a533be6965074f00384b.zip
$X expando didn't check if server type was irc properly, and crashed.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2851 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-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;