comparison src/server.c @ 302:61894ab8c47e

[gaim-migrate @ 312] I think logging in for oscar works a bit better now. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 01 Jun 2000 10:06:37 +0000
parents 0f14e6d8a51b
children 3069be4c291e
comparison
equal deleted inserted replaced
301:f905caee43ca 302:61894ab8c47e
158 158
159 g_snprintf(buf, MSG_LEN - 8, "toc_send_im %s \"%s\"%s", normalize(name), 159 g_snprintf(buf, MSG_LEN - 8, "toc_send_im %s \"%s\"%s", normalize(name),
160 message, ((away) ? " auto" : "")); 160 message, ((away) ? " auto" : ""));
161 sflap_send(buf, strlen(buf), TYPE_DATA); 161 sflap_send(buf, strlen(buf), TYPE_DATA);
162 #else 162 #else
163 oscar_send_im(name, message, away); 163 if (away)
164 aim_send_im(gaim_sess, gaim_conn, name, AIM_IMFLAGS_AWAY, message);
165 else
166 aim_send_im(gaim_sess, gaim_conn, name, 0, message);
164 #endif 167 #endif
165 if (!away) 168 if (!away)
166 serv_touch_idle(); 169 serv_touch_idle();
167 } 170 }
168 171
477 #ifndef USE_OSCAR 480 #ifndef USE_OSCAR
478 char buf[BUF_LONG]; 481 char buf[BUF_LONG];
479 g_snprintf(buf, sizeof(buf)/2, "toc_chat_join %d \"%s\"", exchange, name); 482 g_snprintf(buf, sizeof(buf)/2, "toc_chat_join %d \"%s\"", exchange, name);
480 sflap_send(buf, -1, TYPE_DATA); 483 sflap_send(buf, -1, TYPE_DATA);
481 #else 484 #else
485 sprintf(debug_buff, "Attempting to join chat room %s.\n", name);
486 debug_print(debug_buff);
482 aim_chat_join(gaim_sess, gaim_conn, 0x0004, name); 487 aim_chat_join(gaim_sess, gaim_conn, 0x0004, name);
483 #endif 488 #endif
484 } 489 }
485 490
486 void serv_chat_invite(int id, char *message, char *name) 491 void serv_chat_invite(int id, char *message, char *name)