[Pidgin] #2844: msimprpl should allow user to choose IM username if not already set

Pidgin trac at pidgin.im
Thu Sep 6 01:20:05 EDT 2007


#2844: msimprpl should allow user to choose IM username if not already set
--------------------------+-------------------------------------------------
  Reporter:  jeff         |       Owner:  jeff    
      Type:  enhancement  |      Status:  new     
  Priority:  major        |   Milestone:          
 Component:  libpurple    |     Version:  2.1.1   
Resolution:               |    Keywords:  msimprpl
   Pending:  0            |  
--------------------------+-------------------------------------------------
Comment (by jeff):

 I've committed the change to tell the user to set their username on the
 web page if it is not set.

 I also captured username setting. Notes on a packet capture:
 {{{
 from >=client <=server

 check if msimprpl2 is available
 >
 \persist\1\sesskey\469958979\cmd\2\dsn\9\uid\240626417\lid\14\rid\28\body\UserName=msimprpl2\final\

 yes, it is
 <
 \persistr\\cmd\258\dsn\9\uid\240626417\lid\14\rid\28\body\UserName=msimprpl2.Code=0\final\

 lookup my own myspace info (1,4,5 = lookup myspace user info about self)
 >
 \persist\1\sesskey\469958979\cmd\1\dsn\4\uid\240626417\lid\5\rid\30\body\UserID=240626417\final\

 1,1,4 = lookup IM information about self
 >
 \persist\1\sesskey\469958979\cmd\1\dsn\1\uid\240626417\lid\4\rid\31\body\\final\

 get info on myspaceim uid? add it
 > \getinfo\\sesskey\469958979\uid\78744676\final\
 > \addbuddy\\sesskey\469958979\newprofileid\78744676\reason\\final\
 > \blocklist\\sesskey\469958979\idlist\b-|78744676|a+|78744676\final\

 257,1,4 = response, IM info about self
 < \persistr\\cmd\257\dsn\1\uid\240626417\lid\4\rid\31\body\
 UserID=240626417.
 Sound=True.PrivacyMode=0.
 ShowOnlyToList=False.
 OfflineMessageMode=1.
 Headline=.
 AvatarUrl=.
 Alert=1.
 ShowAvatar=False.
 IMName=.
 LastLogin=128335268400000000.
 ClientVersion=697.
 AllowBrowse=True.
 IMLang=ENGLISH.
 LangID=1033.
 OfflineMsg=\final\

 257,4,5 = myspace info about self
 \persistr\\cmd\257\dsn\4\uid\240626417\lid\5\rid\30\body\
 UserID=240626417.
 ImageURL=http:/1/1x.myspace.com/1images/1no_pic.gif.DisplayName=Msim.
 UserName=240626417.
 BandName=.
 SongName=.
 Age=21.
 Gender=M.
 Location=US.
 TotalFriends=1\final\

 set info; previous information + new username
 >
 \setinfo\\sesskey\469958979\info\Age=21.AvatarUrl=.BandName=.ContactType=1.DisplayName=Msim.Gender=M.ImageURL=http:/1/1x.myspace.com/1images/1no_pic.gif.LastLogin=128335268400000000.Location=US.ShowAvatar=False.SongName=.TotalFriends=1.UserName=msimprpl2\final\

 looks like a repeat of the previous command; maybe a retry
 >
 \setinfo\\sesskey\469958979\info\Age=21.AvatarUrl=.BandName=.ContactType=1.DisplayName=Msim.Gender=M.ImageURL=http:/1/1x.myspace.com/1images/1no_pic.gif.LastLogin=128335268400000000.Location=US.ShowAvatar=False.SongName=.TotalFriends=1.UserName=msimprpl2\final\

 got status message from myspaceim buddy added
 <
 \bm\100\f\78744676\msg\|s|1|ss||ls||ip|170690630|p|0|caps|0|ts|1189021328\final\

 got profile message
 < \bm\124\f\78744676\msg\Age=27.AvatarUrl=.BandName=cold war
 kids.ContactType=2.DisplayName=MySpaceIM.Gender=F.Headline=.ImageURL=http:/1/1b4
 .ac-
 images.myspacecdn.com/101111/149/186/11111986894_m.jpg.IMName=MySpaceIM
 Chat
 Room.LastImageUpdated=128014182600000000.LastLogin=128334949200000000.Location=SANTA
 MONICA, California, US.ShowAvatar=False.SongName=Hang Me Up To
 Dry.TotalFriends=152644.UserName=myspaceim\final\

 Summary:
 1. Check if username is available with 2,9,14 persist. Get back Code=0 if
 is.
 2. Lookup our own MySpace and IM user info by uid.
 3. Use \setinfo with info from IM info that was received, but also with
 UserName field.
 }}}

-- 
Ticket URL: <http://developer.pidgin.im/ticket/2844#comment:9>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list