cmd.c
changeset 11 fafc922963f5
parent 8 5771827a4976
child 13 88315b883803
--- a/cmd.c	Sun Jan 17 12:08:53 2010 +0200
+++ b/cmd.c	Wed Jan 20 19:47:58 2010 +0200
@@ -33,6 +33,8 @@
 #include <mcabber/xmpp.h>
 #include <mcabber/roster.h>
 
+#include "config.h"
+
 typedef struct {
 	gchar      *jid;
 	GString    *input;
@@ -104,7 +106,7 @@
 
 			g_string_append_len (input, buf, endpos);
 
-			if (!lm_connection_is_authenticated (lconnection)) {
+			if (!xmpp_is_online ()) {
 				scr_LogPrint (LPRINT_LOGNORM, "cmd: Connection is not ready, delaying data");
 				return TRUE;
 			}