Mercurial > pidgin.yaz
comparison src/server.c @ 904:e1a7fc4482b9
[gaim-migrate @ 914]
oscar can join empty chat rooms
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 14 Sep 2000 17:40:48 +0000 |
parents | 38ffd1faa31a |
children | 59d9e1177ab5 |
comparison
equal
deleted
inserted
replaced
903:16492f41410d | 904:e1a7fc4482b9 |
---|---|
496 if (!USE_OSCAR) { | 496 if (!USE_OSCAR) { |
497 char buf[BUF_LONG]; | 497 char buf[BUF_LONG]; |
498 g_snprintf(buf, sizeof(buf)/2, "toc_chat_join %d \"%s\"", exchange, name); | 498 g_snprintf(buf, sizeof(buf)/2, "toc_chat_join %d \"%s\"", exchange, name); |
499 sflap_send(buf, -1, TYPE_DATA); | 499 sflap_send(buf, -1, TYPE_DATA); |
500 } else { | 500 } else { |
501 struct aim_conn_t *cur = NULL; | |
501 sprintf(debug_buff, "Attempting to join chat room %s.\n", name); | 502 sprintf(debug_buff, "Attempting to join chat room %s.\n", name); |
502 debug_print(debug_buff); | 503 debug_print(debug_buff); |
503 aim_chat_join(gaim_sess, gaim_conn, exchange, name); | 504 if ((cur = aim_getconn_type(gaim_sess, AIM_CONN_TYPE_CHATNAV))) { |
505 debug_print("chatnav exists, creating room\n"); | |
506 aim_chatnav_createroom(gaim_sess, cur, name, exchange); | |
507 } else { | |
508 /* this gets tricky */ | |
509 debug_print("chatnav does not exist, opening chatnav\n"); | |
510 create_exchange = exchange; | |
511 create_name = g_strdup(name); | |
512 aim_bos_reqservice(gaim_sess, gaim_conn, AIM_CONN_TYPE_CHATNAV); | |
513 } | |
504 } | 514 } |
505 } | 515 } |
506 | 516 |
507 void serv_chat_invite(int id, char *message, char *name) | 517 void serv_chat_invite(int id, char *message, char *name) |
508 { | 518 { |