Changeset 84c3a72
- Timestamp:
- 2010-06-27T12:39:07Z (14 years ago)
- Branches:
- master
- Children:
- 547ea68
- Parents:
- e907683
- Files:
-
- 2 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
irc_commands.c
re907683 r84c3a72 27 27 #include "bitlbee.h" 28 28 #include "ipc.h" 29 #include "chat.h"30 29 31 30 static void irc_cmd_pass( irc_t *irc, char **cmd ) -
protocols/account.c
re907683 r84c3a72 27 27 #include "bitlbee.h" 28 28 #include "account.h" 29 #include "chat.h"30 29 31 30 account_t *account_add( bee_t *bee, struct prpl *prpl, char *user, char *pass ) -
protocols/nogaim.c
re907683 r84c3a72 36 36 37 37 #include "nogaim.h" 38 #include "chat.h"39 38 40 39 GSList *connections; -
root_commands.c
re907683 r84c3a72 28 28 #include "bitlbee.h" 29 29 #include "help.h" 30 #include "chat.h"31 30 32 31 #include <string.h> -
storage_xml.c
re907683 r84c3a72 29 29 #include "arc.h" 30 30 #include "md5.h" 31 #include "chat.h"32 31 33 32 #if GLIB_CHECK_VERSION(2,8,0) … … 55 54 char *current_setting; 56 55 account_t *current_account; 57 struct chat *current_chat;56 irc_channel_t *current_channel; 58 57 set_t **current_set_head; 59 58 char *given_nick; … … 176 175 if( ( setting = xml_attr( attr_names, attr_values, "name" ) ) ) 177 176 { 177 /* 178 178 if( xd->current_chat != NULL ) 179 179 xd->current_set_head = &xd->current_chat->set; 180 else if( xd->current_account != NULL ) 180 else 181 */ 182 if( xd->current_account != NULL ) 181 183 xd->current_set_head = &xd->current_account->set; 182 184 else … … 215 217 if( xd->current_account && handle && channel ) 216 218 { 217 //xd->current_chat = chat_add( xd->irc, xd->current_account, handle, channel ); 219 irc_channel_t *ic; 220 char *acc; 221 222 acc = g_strdup_printf( "%s(%s)", 223 xd->current_account->prpl->name, 224 xd->current_account->user ); 225 226 if( ( ic = irc_channel_new( irc, channel ) ) && 227 set_setstr( &ic->set, "chat_type", "room" ) && 228 set_setstr( &ic->set, "account", acc ) && 229 set_setstr( &ic->set, "room", handle ) ) 230 { 231 /* Nothing else to do for now, really. */ 232 } 233 else if( ic ) 234 irc_channel_free( ic ); 235 236 g_free( acc ); 218 237 } 219 238 else … … 245 264 else if( g_strcasecmp( element_name, "chat" ) == 0 ) 246 265 { 247 xd->current_chat = NULL;266 /* xd->current_chat = NULL; */ 248 267 } 249 268 } … … 437 456 char *pass_b64; 438 457 int pass_len; 439 struct chat *c;440 458 441 459 pass_len = arc_encode( acc->pass, strlen( acc->pass ), (unsigned char**) &pass_cr, irc->password, 12 ); … … 470 488 goto write_error; 471 489 472 #if 0473 for( c = irc->chatrooms; c; c = c->next )474 {475 if( c->acc != acc )476 continue;477 478 if( !xml_printf( fd, 2, "<chat handle=\"%s\" channel=\"%s\" type=\"%s\">\n",479 c->handle, c->channel, "room" ) )480 goto write_error;481 482 for( set = c->set; set; set = set->next )483 if( set->value && !( set->flags & ACC_SET_NOSAVE ) )484 if( !xml_printf( fd, 3, "<setting name=\"%s\">%s</setting>\n",485 set->key, set->value ) )486 goto write_error;487 488 if( !xml_printf( fd, 2, "</chat>\n" ) )489 goto write_error;490 }491 #endif492 493 490 if( !xml_printf( fd, 1, "</account>\n" ) ) 494 491 goto write_error;
Note: See TracChangeset
for help on using the changeset viewer.