Mercurial > pidgin.yaz
comparison src/protocols/irc/irc.c @ 3562:de3bc24fff02
[gaim-migrate @ 3657]
having a link in the realname field causes a problem for _at least_ one server.
this fix from paco-paco simplifies the realname field so that things work.
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sat, 28 Sep 2002 03:48:28 +0000 |
parents | f4cec5d41a89 |
children | d6468f276d24 |
comparison
equal
deleted
inserted
replaced
3561:333551497ff8 | 3562:de3bc24fff02 |
---|---|
1315 | 1315 |
1316 gethostname(hostname, sizeof(hostname) - 1); | 1316 gethostname(hostname, sizeof(hostname) - 1); |
1317 hostname[sizeof(hostname) - 1] = 0; | 1317 hostname[sizeof(hostname) - 1] = 0; |
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 [Gaim (%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, WEBSITE); | 1323 gc->user->alias); |
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 } |