From 09ca671577aa412eee5e7f7f4bc61c0622a167a8 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 11 Nov 2001 22:41:03 +0000 Subject: Fixed to work with new redirection code. Also don't set the mode to +(null) if there's no server mode. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1986 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/proxy/dump.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/irc/proxy/dump.c') diff --git a/src/irc/proxy/dump.c b/src/irc/proxy/dump.c index 8074ae44..49a4c6d2 100644 --- a/src/irc/proxy/dump.c +++ b/src/irc/proxy/dump.c @@ -227,8 +227,11 @@ void plugin_proxy_dump_data(CLIENT_REC *client) /* user mode / away status */ if (client->server != NULL) { - proxy_outserver(client, "MODE %s :+%s", client->server->nick, - client->server->usermode); + if (client->server->usermode != NULL) { + proxy_outserver(client, "MODE %s :+%s", + client->server->nick, + client->server->usermode); + } if (client->server->usermode_away) { proxy_outdata(client, ":%s 306 %s :You have been marked as being away\n", client->proxy_address, client->nick); -- cgit v1.2.3