From 9ebc14418585eb01d79a02c63b49fc2edf6b13e2 Mon Sep 17 00:00:00 2001 From: Akari Date: Tue, 8 Feb 2011 08:07:58 +0200 Subject: [PATCH] half-fixed irc_disconnect --- irc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/irc.c b/irc.c index 3968dfd8..540a0d5a 100755 --- a/irc.c +++ b/irc.c @@ -184,11 +184,15 @@ static void CL_Irc_Disconnect_f(void) Con_Printf("%sNot connected\n", irc_msgprefix.string ); + + return; } Con_Printf("^1Disconnected from the IRC server\n"); irc_cmd_quit(irc_session_global, "Disconnected"); + irc_destroy_session(irc_session_global); + Cvar_SetQuick(&irc_connected, "0"); } -- 2.39.2