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
This commit is contained in:
Timo Sirainen 2001-11-11 22:41:03 +00:00 committed by cras
commit 09ca671577
2 changed files with 45 additions and 95 deletions

View file

@ -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);