equal
deleted
inserted
replaced
31 #include <mcabber/settings.h> |
31 #include <mcabber/settings.h> |
32 #include <mcabber/hbuf.h> |
32 #include <mcabber/hbuf.h> |
33 #include <mcabber/xmpp.h> |
33 #include <mcabber/xmpp.h> |
34 #include <mcabber/roster.h> |
34 #include <mcabber/roster.h> |
35 |
35 |
|
36 #include "config.h" |
|
37 |
36 typedef struct { |
38 typedef struct { |
37 gchar *jid; |
39 gchar *jid; |
38 GString *input; |
40 GString *input; |
39 gchar *subject; |
41 gchar *subject; |
40 guint seq; |
42 guint seq; |
102 gsize written = 0; |
104 gsize written = 0; |
103 gchar *utf8 = NULL; |
105 gchar *utf8 = NULL; |
104 |
106 |
105 g_string_append_len (input, buf, endpos); |
107 g_string_append_len (input, buf, endpos); |
106 |
108 |
107 if (!lm_connection_is_authenticated (lconnection)) { |
109 if (!xmpp_is_online ()) { |
108 scr_LogPrint (LPRINT_LOGNORM, "cmd: Connection is not ready, delaying data"); |
110 scr_LogPrint (LPRINT_LOGNORM, "cmd: Connection is not ready, delaying data"); |
109 return TRUE; |
111 return TRUE; |
110 } |
112 } |
111 |
113 |
112 // usual g_locale_to_utf8 seem to be unable to detect locale charset |
114 // usual g_locale_to_utf8 seem to be unable to detect locale charset |