- Timestamp:
- 2005-11-07T16:16:18Z (19 years ago)
- Branches:
- master
- Children:
- f7f3ada
- Parents:
- fe51bcf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
account.c
rfe51bcf r7b23afd 28 28 #include "account.h" 29 29 30 account_t *account_add( irc_t *irc, int protocol, char *user, char *pass )30 account_t *account_add( irc_t *irc, struct prpl *prpl, char *user, char *pass ) 31 31 { 32 32 account_t *a; … … 42 42 } 43 43 44 a->pr otocol = protocol;44 a->prpl = prpl; 45 45 a->user = g_strdup( user ); 46 46 a->pass = g_strdup( pass ); … … 66 66 for( a = irc->accounts; a; a = a->next ) 67 67 { 68 if( g_strcasecmp( id, proto_name[a->protocol]) == 0 )68 if( g_strcasecmp( id, a->prpl->name ) == 0 ) 69 69 { 70 70 if( !ret ) … … 124 124 } 125 125 126 if ( proto_prpl[a->protocol]->login== NULL )126 if (a->prpl == NULL ) 127 127 { 128 irc_usermsg( irc, "Support for protocol %s is not included in this BitlBee", proto_name[a->protocol]);128 irc_usermsg( irc, "Support for protocol %s is not included in this BitlBee", a->prpl->name ); 129 129 return; 130 130 } … … 134 134 u = g_new0 ( struct aim_user, 1 ); 135 135 u->irc = irc; 136 u->pr otocol = a->protocol;136 u->prpl = a->prpl; 137 137 strncpy( u->username, a->user, sizeof( u->username ) - 1 ); 138 138 strncpy( u->password, a->pass, sizeof( u->password ) - 1 ); … … 142 142 a->reconnect = 0; 143 143 144 proto_prpl[a->protocol]->login( u );144 a->prpl->login( u ); 145 145 } 146 146
Note: See TracChangeset
for help on using the changeset viewer.