Mercurial > pidgin
comparison src/protocols/jabber/presence.c @ 13890:2bac009eaa0c
[gaim-migrate @ 16372]
Some comments changes, and:
1. Don't buddy icons in Jabber
2. When clearing your buddy icon in oscar, do it the same
way that WinAIM does it
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 29 Jun 2006 08:14:29 +0000 |
parents | 25e63008d3bb |
children | 6fc412e59214 |
comparison
equal
deleted
inserted
replaced
13889:085b15c33ca4 | 13890:2bac009eaa0c |
---|---|
254 if((b = gaim_find_buddy(js->gc->account, from))) { | 254 if((b = gaim_find_buddy(js->gc->account, from))) { |
255 unsigned char hashval[20]; | 255 unsigned char hashval[20]; |
256 char hash[41], *p; | 256 char hash[41], *p; |
257 int i; | 257 int i; |
258 | 258 |
259 gaim_cipher_digest_region("sha1", (guchar *)data, size, | 259 gaim_cipher_digest_region("sha1", data, size, |
260 sizeof(hashval), hashval, NULL); | 260 sizeof(hashval), hashval, NULL); |
261 p = hash; | 261 p = hash; |
262 for(i=0; i<20; i++, p+=2) | 262 for(i=0; i<20; i++, p+=2) |
263 snprintf(p, 3, "%02x", hashval[i]); | 263 snprintf(p, 3, "%02x", hashval[i]); |
264 gaim_blist_node_set_string((GaimBlistNode*)b, "avatar_hash", hash); | 264 gaim_blist_node_set_string((GaimBlistNode*)b, "avatar_hash", hash); |
265 } | 265 } |
266 g_free(data); | |
266 g_free(text); | 267 g_free(text); |
267 } | 268 } |
268 } | 269 } |
269 } | 270 } |
270 | 271 |