comparison libpurple/util.c @ 19603:79d624f7c3ee

You can't just look at the first letter of the screen name to determine if it's AIM or ICQ now. It's possible for someone to register their email address as an AIM account, and you can register "12345imcool@gmail.com" as an AIM account. If you only look at the first letter then Pidgin will think it's ICQ.
author Mark Doliner <mark@kingant.net>
date Mon, 03 Sep 2007 09:45:56 +0000
parents 47a2d00ab060
children a38ee5d9eedf 941965d6fd88 b77adb803eca
comparison
equal deleted inserted replaced
19602:fe51c6de1a7f 19603:79d624f7c3ee
4458 } 4458 }
4459 4459
4460 const char *_purple_oscar_convert(const char *act, const char *protocol) 4460 const char *_purple_oscar_convert(const char *act, const char *protocol)
4461 { 4461 {
4462 if (protocol && act && strcmp(protocol, "prpl-oscar") == 0) { 4462 if (protocol && act && strcmp(protocol, "prpl-oscar") == 0) {
4463 if (isdigit(*act)) 4463 int i;
4464 protocol = "prpl-icq"; 4464 for (i = 0; act[i] != '\0'; i++)
4465 else 4465 if (!isdigit(act[i]))
4466 protocol = "prpl-aim"; 4466 return "prpl-aim";
4467 return "prpl-icq";
4467 } 4468 }
4468 return protocol; 4469 return protocol;
4469 } 4470 }
4470 4471
4471 void purple_restore_default_signal_handlers(void) 4472 void purple_restore_default_signal_handlers(void)