Mercurial > pidgin
comparison src/blist.c @ 6450:e7b87c8e8c0a
[gaim-migrate @ 6959]
MMaking a comment about a check that, imho, is a bit ugly. We don't want to
have protocol-specific checks in core code if we can help it.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Wed, 13 Aug 2003 16:31:57 +0000 |
parents | e9974608b319 |
children | ccfdf9f2cdd1 |
comparison
equal
deleted
inserted
replaced
6449:ea689dbf1a57 | 6450:e7b87c8e8c0a |
---|---|
1251 | 1251 |
1252 prpl_num = gaim_account_get_protocol(account); | 1252 prpl_num = gaim_account_get_protocol(account); |
1253 | 1253 |
1254 protocol = prpl_num; | 1254 protocol = prpl_num; |
1255 | 1255 |
1256 /* TODO Somehow move this checking into prpls */ | |
1256 if (prpl_num == GAIM_PROTO_OSCAR) { | 1257 if (prpl_num == GAIM_PROTO_OSCAR) { |
1257 if ((username = gaim_account_get_username(account)) != NULL) { | 1258 if ((username = gaim_account_get_username(account)) != NULL) { |
1258 protocol = (isalpha(*username) | 1259 protocol = (isalpha(*username) |
1259 ? GAIM_PROTO_TOC : GAIM_PROTO_ICQ); | 1260 ? GAIM_PROTO_TOC : GAIM_PROTO_ICQ); |
1260 } | 1261 } |