Mercurial > pidgin
diff libpurple/protocols/yahoo/util.c @ 28463:7b88cc6c3f7a
Cannot send a file to a federated user on yahoo.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sun, 01 Nov 2009 02:56:44 +0000 |
parents | 43200ff042ad |
children | f4a95b3424d1 |
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/util.c Fri Oct 30 01:41:49 2009 +0000 +++ b/libpurple/protocols/yahoo/util.c Sun Nov 01 02:56:44 2009 +0000 @@ -916,3 +916,18 @@ return g_string_free(dest, FALSE); } + +YahooFederation yahoo_get_federation_from_name(const char *who) +{ + YahooFederation fed = YAHOO_FEDERATION_NONE; + if (who[3] == '/') { + if (!g_ascii_strncasecmp(who, "msn", 3)) + fed = YAHOO_FEDERATION_MSN; + else if (!g_ascii_strncasecmp(who, "ocs", 3)) + fed = YAHOO_FEDERATION_OCS; + else if (!g_ascii_strncasecmp(who, "ibm", 3)) + fed = YAHOO_FEDERATION_IBM; + } + return fed; +} +