From: I. <air...@us...> - 2003-10-31 13:05:09
|
Ups, sorry, I fixed it ;) I had problems getting the msnobj (it looks like it was being removed in=20 SetUserInfo), so I added that just for debugging purposes :p I have already removed it. Anyways, I think the nick change was only local,= so=20 you saw yourself as "Caca", a spanish word like "Foo", but your nickname wa= s=20 sent correctly. Greets. Alvaro. El Viernes, 31 de Octubre de 2003 13:17, Erik T=F8rrissen escribi=F3: > Nice! ;) > > But do you guys have any idea of why my nick changes to Caca all the > time? :P' > > $ grep Caca * > protocol.tcl: set list_users [lreplace $list_users $idx $idx [list > $user $user_name $state_no $msnobj Caca]] > > I found this in the source.. > > Greetings. > > On Fri, 2003-10-31 at 01:40, =C1lvaro J. Iradier wrote: > > Ok, so I commited some work on receiving pictures. Now when a user joins > > to a conversation, it checks if it has a picture. > > > > If it has a picture, it will check if file: > > "[file join $HOME displaypic ${sha1 d}].gif" > > exists, and use it. If it doesn't exist, it will request the picture to > > the user, and download it. > > > > Everything is done in ::MSNP2P::loadUserPic(chatid,user_login) > > > > The problem is I couldn't find how to get the sha1d in the place where = we > > open the destination file for writing, so for the moment i left it as it > > was (it's saved as cache.png, then renamed to ks_test001_hotmail_com.png > > and converted to .gif, and then it replaces your picture). > > > > I guess we should save the file to "sha1d.png" instead of "cache.png", > > then convert it when it finishes receiving, and load the .gif file into > > image user_pic_$user_login > > > > I made a procedure that parses the msnobj string and gets the SHA1D=20 string: > > ::MSNP2P::GetSHA1DFromMSNOBJ $msnobj > > > > If you can tell me how can I get the SHA1D or the $msnobj string in > > procedure "ReadData", where the file is opened for writing, and convert= ed > > when finished, then I'll finish this. I didn't have time for guessing i= t, > > sorry :) > > > > Oh, I forgot, we need the user_login too in that procedure (for creating > > the image named user_pic_$username). > > > > > > Greets. Alvaro. > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Amsn-devel mailing list > Ams...@li... > https://lists.sourceforge.net/lists/listinfo/amsn-devel =2D-=20 (=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D) Alvaro J. Iradier Muro air...@us... |