Mercurial > pidgin
changeset 12006:de25a063aebe
[gaim-migrate @ 14299]
fix a sloppy copy and a genuine screwup
committer: Tailor Script <tailor@pidgin.im>
author | Christopher O'Brien <siege@pidgin.im> |
---|---|
date | Tue, 08 Nov 2005 18:56:15 +0000 |
parents | 5b3368008513 |
children | 8724718d387f |
files | src/protocols/sametime/sametime.c |
diffstat | 1 files changed, 3 insertions(+), 21 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/sametime/sametime.c Tue Nov 08 17:56:39 2005 +0000 +++ b/src/protocols/sametime/sametime.c Tue Nov 08 18:56:15 2005 +0000 @@ -807,7 +807,7 @@ static GaimGroup *group_ensure(GaimConnection *gc, struct mwSametimeGroup *stgroup) { GaimAccount *acct; - GaimGroup *group; + GaimGroup *group = NULL; GaimBuddyList *blist; GaimBlistNode *gn; const char *name, *alias, *owner; @@ -836,7 +836,7 @@ } /* try again, by alias */ - group = gaim_find_group(alias); + if(! group) group = gaim_find_group(alias); /* oh well, no such group. Let's create it! */ if(! group) { @@ -3823,24 +3823,6 @@ } -static char *im_try_convert(const char *msg, - const char *enc_to, - const char *enc_from) { - char *ret; - GError *error = NULL; - - ret = g_convert(msg, -1, enc_to, enc_from, NULL, NULL, &error); - if(error) { - /* if there's something that just won't convert, leave it as UTF-8 */ - DEBUG_INFO("problem converting to %s, preserving %s: %s\n", - NSTR(enc_to), NSTR(enc_from), NSTR(error->message)); - g_error_free(error); - } - - return ret; -} - - static char *nb_im_encode(GaimConnection *gc, const char *message) { GaimAccount *acct; const char *enc; @@ -3877,7 +3859,7 @@ we can discount the real 0x1002 */ /* I tried to avoid having any client-type-dependant code in here, I really did. Oh well. CURSE YOU NOTESBUDDY */ - return ((info->type == 0x1002) || (info->type & 0x1400)); + return ((info->type == 0x1002) || ((info->type & 0xff00) == 0x1400)); }