comparison mcabber/mcabber/screen.c @ 2165:db6ca1e1e082

Remove support for obsolete XEP 22
author franky
date Fri, 17 Oct 2014 22:33:19 +0200
parents 038c4d601011
children 282531385f34
comparison
equal deleted inserted replaced
2164:038c4d601011 2165:db6ca1e1e082
87 static void scr_handle_tab(gboolean fwd); 87 static void scr_handle_tab(gboolean fwd);
88 88
89 static void scr_glog_print(const gchar *log_domain, GLogLevelFlags log_level, 89 static void scr_glog_print(const gchar *log_domain, GLogLevelFlags log_level,
90 const gchar *message, gpointer user_data); 90 const gchar *message, gpointer user_data);
91 91
92 #if defined XEP0022 || defined XEP0085 92 #ifdef XEP0085
93 static gboolean scr_chatstates_timeout(); 93 static gboolean scr_chatstates_timeout();
94 #endif 94 #endif
95 95
96 #if defined(WITH_ENCHANT) || defined(WITH_ASPELL) 96 #if defined(WITH_ENCHANT) || defined(WITH_ASPELL)
97 static void spellcheck(char *, char *); 97 static void spellcheck(char *, char *);
2378 // set_chatstate(state) 2378 // set_chatstate(state)
2379 // Set the current chat state (0=active, 1=composing, 2=paused) 2379 // Set the current chat state (0=active, 1=composing, 2=paused)
2380 // If the chat state has changed, call xmpp_send_chatstate() 2380 // If the chat state has changed, call xmpp_send_chatstate()
2381 static void set_chatstate(int state) 2381 static void set_chatstate(int state)
2382 { 2382 {
2383 #if defined XEP0022 || defined XEP0085 2383 #ifdef XEP0085
2384 if (chatstates_disabled) 2384 if (chatstates_disabled)
2385 return; 2385 return;
2386 if (!chatmode) 2386 if (!chatmode)
2387 state = 0; 2387 state = 0;
2388 if (state != chatstate) { 2388 if (state != chatstate) {
2407 chatstate_timestamp = 0; 2407 chatstate_timestamp = 0;
2408 } 2408 }
2409 #endif 2409 #endif
2410 } 2410 }
2411 2411
2412 #if defined XEP0022 || defined XEP0085 2412 #ifdef XEP0085
2413 static gboolean scr_chatstates_timeout(void) 2413 static gboolean scr_chatstates_timeout(void)
2414 { 2414 {
2415 time_t now; 2415 time_t now;
2416 time(&now); 2416 time(&now);
2417 // Check if we're currently composing... 2417 // Check if we're currently composing...