summaryrefslogtreecommitdiff
path: root/src/irc/proxy/dump.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-11-11 22:41:03 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-11-11 22:41:03 +0000
commit09ca671577aa412eee5e7f7f4bc61c0622a167a8 (patch)
tree403433fc3b0f5bf893500dc629556b3e60537545 /src/irc/proxy/dump.c
parentea03650b3f495d39d46f288ce3ddd4142ff34a77 (diff)
downloadirssi-09ca671577aa412eee5e7f7f4bc61c0622a167a8.zip
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
Diffstat (limited to 'src/irc/proxy/dump.c')
-rw-r--r--src/irc/proxy/dump.c7
1 files changed, 5 insertions, 2 deletions
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);