- Timestamp:
- 2010-04-01T03:38:50Z (15 years ago)
- Branches:
- master
- Children:
- e63507a
- Parents:
- 81e04e1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
irc_im.c
r81e04e1 rd860a8d 26 26 #include "bitlbee.h" 27 27 28 29 /* IM->IRC callbacks */ 30 28 31 static const struct irc_user_funcs irc_user_im_funcs; 29 static const struct bee_ui_funcs irc_ui_funcs;30 32 31 33 static gboolean bee_irc_user_new( bee_t *bee, bee_user_t *bu ) … … 37 39 strcpy( nick, nick_get( bu->ic->acc, bu->handle ) ); 38 40 39 iu = irc_user_new( (irc_t*) bee->ui_data, nick ); 41 bu->ui_data = iu = irc_user_new( (irc_t*) bee->ui_data, nick ); 42 iu->bu = bu; 40 43 41 44 if( ( s = strchr( bu->handle, '@' ) ) ) … … 66 69 } 67 70 71 static gboolean bee_irc_user_free( bee_t *bee, bee_user_t *bu ) 72 { 73 return irc_user_free( bee->ui_data, bu->ui_data ); 74 } 75 76 static gboolean bee_irc_user_status( bee_t *bee, bee_user_t *bu, bee_user_t *old ) 77 { 78 return TRUE; 79 } 80 81 const struct bee_ui_funcs irc_ui_funcs = { 82 bee_irc_user_new, 83 bee_irc_user_free, 84 bee_irc_user_status, 85 }; 68 86 69 87 70 static const struct bee_ui_funcs irc_ui_funcs = { 71 bee_irc_user_new, 72 }; 88 /* IRC->IM calls */ 89 90 static gboolean bee_irc_user_privmsg( irc_user_t *iu, const char *msg ) 91 { 92 if( iu->bu ) 93 return bee_user_msg( iu->irc->b, iu->bu, msg, 0 ); 94 else 95 return FALSE; 96 } 73 97 74 98 static const struct irc_user_funcs irc_user_im_funcs = { 99 bee_irc_user_privmsg, 75 100 };
Note: See TracChangeset
for help on using the changeset viewer.