Mercurial > pidgin.yaz
diff libpurple/util.c @ 15421:6d8728fd3dda
Make sure the pounces, buddy-aliases, savedstatuses etc. saved before the aim/icq split works after the split. The util function _gaim_oscar_convert will be removed at a 'suitable' time in the future.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Fri, 26 Jan 2007 04:10:22 +0000 |
parents | 22bcaaefa478 |
children | b0471b2a1de9 |
line wrap: on
line diff
--- a/libpurple/util.c Fri Jan 26 03:53:15 2007 +0000 +++ b/libpurple/util.c Fri Jan 26 04:10:22 2007 +0000 @@ -4040,3 +4040,14 @@ return buf; } +const char *_gaim_oscar_convert(const char *act, const char *protocol) +{ + if (protocol && act && strcmp(protocol, "prpl-oscar") == 0) { + if (isdigit(*act)) + protocol = "prpl-icq"; + else + protocol = "prpl-aim"; + } + return protocol; +} +