From: Akari Date: Tue, 8 Feb 2011 06:07:58 +0000 (+0200) Subject: half-fixed irc_disconnect X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9ebc14418585eb01d79a02c63b49fc2edf6b13e2;p=xonotic%2Fdarkplaces.git half-fixed irc_disconnect --- 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"); }