Mercurial > pidgin
comparison src/server.c @ 276:9e6fc62490cd
[gaim-migrate @ 286]
receive messages faster
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Sun, 28 May 2000 21:38:54 +0000 |
| parents | 4c6c213646a3 |
| children | e606585a38bd |
comparison
equal
deleted
inserted
replaced
| 275:f9eb3eb9ffde | 276:9e6fc62490cd |
|---|---|
| 27 #include <sys/time.h> | 27 #include <sys/time.h> |
| 28 #include <unistd.h> | 28 #include <unistd.h> |
| 29 #include <gtk/gtk.h> | 29 #include <gtk/gtk.h> |
| 30 #ifdef USE_OSCAR | 30 #ifdef USE_OSCAR |
| 31 #include "../libfaim/aim.h" | 31 #include "../libfaim/aim.h" |
| 32 extern int gaim_caps; | |
| 32 #endif | 33 #endif |
| 33 #include "gaim.h" | 34 #include "gaim.h" |
| 34 | 35 |
| 35 static int idle_timer = -1; | 36 static int idle_timer = -1; |
| 36 static time_t lastsent = 0; | 37 static time_t lastsent = 0; |
| 234 else | 235 else |
| 235 g_snprintf(buf, MSG_LEN, "toc_set_away \"\""); | 236 g_snprintf(buf, MSG_LEN, "toc_set_away \"\""); |
| 236 sflap_send(buf, -1, TYPE_DATA); | 237 sflap_send(buf, -1, TYPE_DATA); |
| 237 #else | 238 #else |
| 238 aim_bos_setprofile(gaim_sess, gaim_conn, current_user->user_info, | 239 aim_bos_setprofile(gaim_sess, gaim_conn, current_user->user_info, |
| 239 message, AIM_CAPS_CHAT); | 240 message, gaim_caps); |
| 240 #endif | 241 #endif |
| 241 } | 242 } |
| 242 | 243 |
| 243 void serv_set_info(char *info) | 244 void serv_set_info(char *info) |
| 244 { | 245 { |
| 247 g_snprintf(buf, sizeof(buf), "toc_set_info \"%s\n\"", info); | 248 g_snprintf(buf, sizeof(buf), "toc_set_info \"%s\n\"", info); |
| 248 sflap_send(buf, -1, TYPE_DATA); | 249 sflap_send(buf, -1, TYPE_DATA); |
| 249 #else | 250 #else |
| 250 if (awaymessage) | 251 if (awaymessage) |
| 251 aim_bos_setprofile(gaim_sess, gaim_conn, info, | 252 aim_bos_setprofile(gaim_sess, gaim_conn, info, |
| 252 awaymessage->message, AIM_CAPS_CHAT); | 253 awaymessage->message, gaim_caps); |
| 253 else | 254 else |
| 254 aim_bos_setprofile(gaim_sess, gaim_conn, info, | 255 aim_bos_setprofile(gaim_sess, gaim_conn, info, |
| 255 NULL, AIM_CAPS_CHAT); | 256 NULL, gaim_caps); |
| 256 #endif | 257 #endif |
| 257 } | 258 } |
| 258 | 259 |
| 259 void serv_change_passwd(char *orig, char *new) { | 260 void serv_change_passwd(char *orig, char *new) { |
| 260 #ifndef USE_OSCAR | 261 #ifndef USE_OSCAR |
