summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--src/irc/irc-send.c15
-rw-r--r--weechat/ChangeLog3
-rw-r--r--weechat/src/irc/irc-send.c15
4 files changed, 10 insertions, 26 deletions
diff --git a/ChangeLog b/ChangeLog
index b04bcd5fd..85b0b2b29 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,9 @@ WeeChat - Wee Enhanced Environment for Chat
ChangeLog - 2007-03-29
+Version 0.2.5 (under dev!):
+ * fixed USER message when connecting to IRC server (patch #5835)
+
Version 0.2.4 (2007-03-29):
* fixed color bug with IRC messages displayed by plugins (bug #19442)
* fixed topic charset, now using channel charset if defined (bug #19386)
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);
}
diff --git a/weechat/ChangeLog b/weechat/ChangeLog
index b04bcd5fd..85b0b2b29 100644
--- a/weechat/ChangeLog
+++ b/weechat/ChangeLog
@@ -4,6 +4,9 @@ WeeChat - Wee Enhanced Environment for Chat
ChangeLog - 2007-03-29
+Version 0.2.5 (under dev!):
+ * fixed USER message when connecting to IRC server (patch #5835)
+
Version 0.2.4 (2007-03-29):
* fixed color bug with IRC messages displayed by plugins (bug #19442)
* fixed topic charset, now using channel charset if defined (bug #19386)
diff --git a/weechat/src/irc/irc-send.c b/weechat/src/irc/irc-send.c
index 2027e5381..d109f23b6 100644
--- a/weechat/src/irc/irc-send.c
+++ b/weechat/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);
}