Mercurial > pidgin.yaz
changeset 27301:a1603a9cda5e
We should not be sensitive about the case.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Mon, 29 Jun 2009 03:32:35 +0000 |
parents | 61b4d2eb3006 |
children | 716bd29bdc28 |
files | libpurple/protocols/yahoo/yahoo.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo.c Mon Jun 29 03:02:58 2009 +0000 +++ b/libpurple/protocols/yahoo/yahoo.c Mon Jun 29 03:32:35 2009 +0000 @@ -4222,7 +4222,7 @@ } } - msn = g_str_has_prefix(who, "msn/") || g_str_has_prefix(who, "MSN/"); + msn = !g_strncasecmp(who, "msn/", 4); if( strncmp(who, "+", 1) == 0 ) { /* we have an sms to be sent */ @@ -4346,7 +4346,7 @@ { struct yahoo_data *yd = gc->proto_data; struct yahoo_p2p_data *p2p_data; - gboolean msn = (g_str_has_prefix(who, "msn/") || g_str_has_prefix(who, "MSN/")); + gboolean msn = !g_strncasecmp(who, "msn/", 4); struct yahoo_packet *pkt = NULL; /* Don't do anything if sms is being typed */ @@ -4619,7 +4619,7 @@ return; f = yahoo_friend_find(gc, bname); - msn = g_str_has_prefix(bname, "msn/") || g_str_has_prefix(bname, "MSN/"); + msn = !g_strncasecmp(bname, "msn/", 4); g = purple_buddy_get_group(buddy); if (g)