Changeset ad404ab
- Timestamp:
- 2010-06-03T00:20:53Z (15 years ago)
- Branches:
- master
- Children:
- 7b71feb
- Parents:
- 704dd38
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
irc_im.c
r704dd38 rad404ab 65 65 if( set_getbool( &bee->set, "private" ) ) 66 66 iu->flags |= IRC_USER_PRIVATE; 67 68 if( bu->flags & BEE_USER_LOCAL ) 69 { 70 char *s = set_getstr( &bee->set, "handle_unknown" ); 71 72 if( strcmp( s, "add_private" ) == 0 ) 73 iu->flags |= IRC_USER_PRIVATE; 74 else if( strcmp( s, "add_channel" ) == 0 ) 75 iu->flags &= ~IRC_USER_PRIVATE; 76 } 67 77 68 78 iu->f = &irc_user_im_funcs; -
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 ); -
root_commands.c
r704dd38 rad404ab 532 532 /* Only for add -tmp. For regular adds, this callback will 533 533 be called once the IM server confirms. */ 534 bee_user_new( irc->b, a->ic, cmd[2] );534 bee_user_new( irc->b, a->ic, cmd[2], BEE_USER_LOCAL ); 535 535 536 536 irc_usermsg( irc, "Adding `%s' to your contact list", cmd[2] );
Note: See TracChangeset
for help on using the changeset viewer.