summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2007-04-02 09:23:41 +0000
committerSebastien Helleu <flashcode@flashtux.org>2007-04-02 09:23:41 +0000
commit8d014d66da048366d3f0f6fab5a8eb08551dca5a (patch)
tree444e19aacc5aa83d0802c095d1d73e19a450116f /src/irc
parentf07c42fff360da9f4024c46c6aa9f1b63c86ac49 (diff)
downloadweechat-8d014d66da048366d3f0f6fab5a8eb08551dca5a.zip
Fixed USER message when connecting to IRC server (patch #5835)
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/irc-send.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/irc/irc-send.c b/src/irc/irc-send.c
index 2027e5381..d109f23b6 100644
--- a/src/irc/irc-send.c
+++ b/src/irc/irc-send.c
@@ -103,27 +103,16 @@ irc_hide_password (char *string, int look_for_nickserv)
void
irc_login (t_irc_server *server)
{
- char hostname[NI_MAXHOST];
-
if ((server->password) && (server->password[0]))
server_sendf (server, "PASS %s", server->password);
- gethostname (hostname, sizeof (hostname) - 1);
- hostname[sizeof (hostname) - 1] = '\0';
- if (!hostname[0])
- snprintf (hostname, NI_MAXHOST, "unknown");
-
- irc_display_prefix (server, server->buffer, PREFIX_INFO);
- gui_printf (server->buffer,
- _("%s: using hostname \"%s\"\n"),
- PACKAGE_NAME, hostname);
if (!server->nick)
server->nick = strdup (server->nick1);
server_sendf (server,
"NICK %s\n"
"USER %s %s %s :%s",
- server->nick, server->username, hostname, "servername",
- server->realname);
+ server->nick, server->username, server->username,
+ server->address, server->realname);
gui_input_draw (gui_current_window->buffer, 1);
}