- Timestamp:
- 2010-06-03T00:20:53Z (14 years ago)
- Branches:
- master
- Children:
- 7b71feb
- Parents:
- 704dd38
- Location:
- protocols
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/bee.h
r704dd38 rad404ab 54 54 BEE_USER_ONLINE = 1, /* Compatibility with old OPT_LOGGED_IN flag */ 55 55 BEE_USER_AWAY = 4, /* Compatibility with old OPT_AWAY flag */ 56 BEE_USER_LOCAL = 256, /* Locally-added contacts (not in real contact list) */ 56 57 } bee_user_flags_t; 57 58 … … 107 108 108 109 /* bee_user.c */ 109 bee_user_t *bee_user_new( bee_t *bee, struct im_connection *ic, const char *handle );110 bee_user_t *bee_user_new( bee_t *bee, struct im_connection *ic, const char *handle, bee_user_flags_t flags ); 110 111 int bee_user_free( bee_t *bee, bee_user_t *bu ); 111 112 bee_user_t *bee_user_by_handle( bee_t *bee, struct im_connection *ic, const char *handle ); -
protocols/bee_chat.c
r704dd38 rad404ab 160 160 your contact list. Try to handle that here */ 161 161 if( !me && !bu ) 162 bu = bee_user_new( bee, ic, handle );162 bu = bee_user_new( bee, ic, handle, BEE_USER_LOCAL ); 163 163 164 164 /* Add the handle to the room userlist */ -
protocols/bee_user.c
r704dd38 rad404ab 27 27 #include "bitlbee.h" 28 28 29 bee_user_t *bee_user_new( bee_t *bee, struct im_connection *ic, const char *handle )29 bee_user_t *bee_user_new( bee_t *bee, struct im_connection *ic, const char *handle, bee_user_flags_t flags ) 30 30 { 31 31 bee_user_t *bu; … … 37 37 bu->bee = bee; 38 38 bu->ic = ic; 39 bu->flags = flags; 39 40 bu->handle = g_strdup( handle ); 40 41 bee->users = g_slist_prepend( bee->users, bu ); … … 160 161 if( g_strcasecmp( set_getstr( &ic->bee->set, "handle_unknown" ), "add" ) == 0 ) 161 162 { 162 bu = bee_user_new( bee, ic, handle );163 bu = bee_user_new( bee, ic, handle, BEE_USER_LOCAL ); 163 164 } 164 165 else … … 208 209 else if( g_strncasecmp( h, "add", 3 ) == 0 ) 209 210 { 210 bu = bee_user_new( bee, ic, handle );211 bu = bee_user_new( bee, ic, handle, BEE_USER_LOCAL ); 211 212 } 212 213 } -
protocols/nogaim.c
r704dd38 rad404ab 376 376 377 377 if( !( bu = bee_user_by_handle( bee, ic, handle ) ) ) 378 bu = bee_user_new( bee, ic, handle );378 bu = bee_user_new( bee, ic, handle, 0 ); 379 379 380 380 bu->group = bee_group_by_name( bee, group, TRUE );
Note: See TracChangeset
for help on using the changeset viewer.