comparison src/protocols/irc/irc.c @ 3569:d6468f276d24

[gaim-migrate @ 3665] fix situation when you have no alias since we removed the url from the realname now defaults to "gaim" when there is no alias committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sun, 29 Sep 2002 04:26:50 +0000
parents de3bc24fff02
children bdd0bebd2d04
comparison
equal deleted inserted replaced
3568:3c4b8982068a 3569:d6468f276d24
1318 if (!*hostname) 1318 if (!*hostname)
1319 g_snprintf(hostname, sizeof(hostname), "localhost"); 1319 g_snprintf(hostname, sizeof(hostname), "localhost");
1320 g_snprintf(buf, sizeof(buf), "USER %s %s %s :%s\r\n", 1320 g_snprintf(buf, sizeof(buf), "USER %s %s %s :%s\r\n",
1321 g_get_user_name(), hostname, 1321 g_get_user_name(), hostname,
1322 gc->user->proto_opt[USEROPT_SERV], 1322 gc->user->proto_opt[USEROPT_SERV],
1323 gc->user->alias); 1323 gc->user->alias ? gc->user->alias : "gaim");
1324 if (irc_write(idata->fd, buf, strlen(buf)) < 0) { 1324 if (irc_write(idata->fd, buf, strlen(buf)) < 0) {
1325 hide_login_progress(gc, "Write error"); 1325 hide_login_progress(gc, "Write error");
1326 signoff(gc); 1326 signoff(gc);
1327 return; 1327 return;
1328 } 1328 }