| 308 PurpleProtocol *protocol; |
308 PurpleProtocol *protocol; |
| 309 PurpleAttentionType* attn; |
309 PurpleAttentionType* attn; |
| 310 |
310 |
| 311 g_return_val_if_fail(account != NULL, NULL); |
311 g_return_val_if_fail(account != NULL, NULL); |
| 312 |
312 |
| 313 protocol = purple_protocols_find(purple_account_get_protocol_id(account)); |
313 protocol = purple_account_get_protocol(account); |
| 314 |
314 |
| 315 /* Lookup the attention type in the protocol's attention_types list, if any. */ |
315 /* Lookup the attention type in the protocol's attention_types list, if any. */ |
| 316 if (PURPLE_IS_PROTOCOL_ATTENTION(protocol)) { |
316 if (PURPLE_IS_PROTOCOL_ATTENTION(protocol)) { |
| 317 GList *attention_types; |
317 GList *attention_types; |
| 318 |
318 |