summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-09-28 01:38:50 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-09-28 01:38:50 +0000
commit4e4ba04b7e0b727a20081e971df69b54009948d6 (patch)
tree327a0d9baef29040ae3981a98f61a636e58e4e52
parent6dd07c76cb627ac2945e1c8ef218c56f8d4b4895 (diff)
downloadirssi-4e4ba04b7e0b727a20081e971df69b54009948d6.zip
multiprotocol fixes for /AWAY -all
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@693 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r--src/irc/core/irc-commands.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/irc/core/irc-commands.c b/src/irc/core/irc-commands.c
index 2027fe46..035b17b1 100644
--- a/src/irc/core/irc-commands.c
+++ b/src/irc/core/irc-commands.c
@@ -593,6 +593,9 @@ static void cmd_ping(const char *data, IRC_SERVER_REC *server, WI_ITEM_REC *item
static void server_send_away(IRC_SERVER_REC *server, const char *reason)
{
+ if (!IS_IRC_SERVER(server))
+ return;
+
g_free_not_null(server->away_reason);
server->away_reason = g_strdup(reason);