From 0157d234f87337f51bb6e3fb285eb89dc44ac5ac Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 22 Jan 2002 20:29:45 +0000 Subject: Added /SET proxy_string_after setting which gets sent after NICK/USER, bnc wants this. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2338 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/core/irc-servers.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/irc') diff --git a/src/irc/core/irc-servers.c b/src/irc/core/irc-servers.c index fe3e5fcc..4da561eb 100644 --- a/src/irc/core/irc-servers.c +++ b/src/irc/core/irc-servers.c @@ -144,12 +144,19 @@ static void server_init(IRC_SERVER_REC *server) username = g_strdup(conn->username); ptr = strchr(username, ' '); if (ptr != NULL) *ptr = '\0'; - + irc_send_cmdv(server, "USER %s %s %s :%s", username, hostname, address, conn->realname); g_free(username); server->cmdcount = 0; + + if (conn->proxy_string_after != NULL) { + irc_send_cmdv(server, conn->proxy_string_after, + conn->address, conn->port); + } + + server->cmdcount = 0; } IRC_SERVER_REC *irc_server_connect(IRC_SERVER_CONNECT_REC *conn) -- cgit v1.2.3