| 77 |
77 |
| 78 for (l = gaim_connections_get_all(); l != NULL; l = l->next) |
78 for (l = gaim_connections_get_all(); l != NULL; l = l->next) |
| 79 { |
79 { |
| 80 GaimConnection *gc = (GaimConnection *)l->data; |
80 GaimConnection *gc = (GaimConnection *)l->data; |
| 81 GaimAccount *account = gaim_connection_get_account(gc); |
81 GaimAccount *account = gaim_connection_get_account(gc); |
| 82 char *me = g_strdup(gaim_normalize(account, gaim_account_get_username(account))); |
82 char *me; |
| 83 |
83 |
| 84 if (strcmp(gaim_account_get_protocol_id(account), prpl_id)) |
84 if (strcmp(gaim_account_get_protocol_id(account), prpl_id)) |
| 85 continue; |
85 continue; |
| 86 |
86 |
| 87 if (!gaim_account_get_bool(account, "gevo-autoadd", FALSE)) |
87 if (!gaim_account_get_bool(account, "gevo-autoadd", FALSE)) |
| 88 continue; |
88 continue; |
| 89 |
89 |
| |
90 me = g_strdup(gaim_normalize(account, gaim_account_get_username(account))); |
| 90 for (l2 = ims; l2 != NULL; l2 = l2->next) |
91 for (l2 = ims; l2 != NULL; l2 = l2->next) |
| 91 { |
92 { |
| 92 if (gaim_find_buddy(account, l2->data) != NULL || |
93 if (gaim_find_buddy(account, l2->data) != NULL || |
| 93 !strcmp(me, gaim_normalize(account, l2->data))) |
94 !strcmp(me, gaim_normalize(account, l2->data))) |
| 94 continue; |
95 continue; |