comparison src/protocols/irc/irc.c @ 3575:0a60fd3905b1

[gaim-migrate @ 3674] a second attempt at fixing realnames committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Mon, 30 Sep 2002 05:46:14 +0000
parents bdd0bebd2d04
children 8e4e3eacb45e
comparison
equal deleted inserted replaced
3574:2b43124e8475 3575:0a60fd3905b1
1313 if (!*hostname) 1313 if (!*hostname)
1314 g_snprintf(hostname, sizeof(hostname), "localhost"); 1314 g_snprintf(hostname, sizeof(hostname), "localhost");
1315 g_snprintf(buf, sizeof(buf), "USER %s %s %s :%s\r\n", 1315 g_snprintf(buf, sizeof(buf), "USER %s %s %s :%s\r\n",
1316 g_get_user_name(), hostname, 1316 g_get_user_name(), hostname,
1317 gc->user->proto_opt[USEROPT_SERV], 1317 gc->user->proto_opt[USEROPT_SERV],
1318 gc->user->alias ? gc->user->alias : "gaim"); 1318 gc->user->alias && strlen(gc->user->alias) ? gc->user->alias : "gaim");
1319 if (irc_write(idata->fd, buf, strlen(buf)) < 0) { 1319 if (irc_write(idata->fd, buf, strlen(buf)) < 0) {
1320 hide_login_progress(gc, "Write error"); 1320 hide_login_progress(gc, "Write error");
1321 signoff(gc); 1321 signoff(gc);
1322 return; 1322 return;
1323 } 1323 }