Changes in account.c [a312b6b:c99af3a]
Legend:
- Unmodified
- Added
- Removed
-
account.c
ra312b6b rc99af3a 35 35 { 36 36 for( a = irc->accounts; a->next; a = a->next ); 37 a = a->next = g_new0 ( account_t, 1 );37 a = a->next = g_new0 ( account_t, 1 ); 38 38 } 39 39 else … … 53 53 { 54 54 account_t *a, *ret = NULL; 55 char *handle, *s;56 55 int nr; 57 58 /* This checks if the id string ends with (...) */59 if( ( handle = strchr( id, '(' ) ) && ( s = strchr( handle, ')' ) ) && s[1] == 0 )60 {61 struct prpl *proto;62 63 *s = *handle = 0;64 handle ++;65 66 if( ( proto = find_protocol( id ) ) )67 {68 for( a = irc->accounts; a; a = a->next )69 if( a->prpl == proto &&70 a->prpl->cmp_buddynames( handle, a->user ) == 0 )71 ret = a;72 }73 74 /* Restore the string. */75 handle --;76 *handle = '(';77 *s = ')';78 79 if( ret )80 return ret;81 }82 56 83 57 if( sscanf( id, "%d", &nr ) == 1 && nr < 1000 )
Note: See TracChangeset
for help on using the changeset viewer.