]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
half-fixed irc_disconnect
authorAkari <hetors.email@gmail.com>
Tue, 8 Feb 2011 06:07:58 +0000 (08:07 +0200)
committerAkari <hetors.email@gmail.com>
Tue, 8 Feb 2011 06:07:58 +0000 (08:07 +0200)
irc.c

diff --git a/irc.c b/irc.c
index 3968dfd874591170cd6a6334c2fcc3f72573ca59..540a0d5a620f7ef25f043aa90c16d005b0ad11c5 100755 (executable)
--- 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");
 }