libpurple/protocols/myspace/user.c

changeset 29284
2ec96cd911b5
parent 29144
37d452dbb40c
child 29285
3180b88b4c1b
equal deleted inserted replaced
29283:422504960860 29284:2ec96cd911b5
90 */ 90 */
91 MsimUser * 91 MsimUser *
92 msim_find_user(MsimSession *session, const gchar *username) 92 msim_find_user(MsimSession *session, const gchar *username)
93 { 93 {
94 PurpleBuddy *buddy; 94 PurpleBuddy *buddy;
95 MsimUser *user;
96 95
97 buddy = purple_find_buddy(session->account, username); 96 buddy = purple_find_buddy(session->account, username);
98 if (!buddy) { 97 if (!buddy) {
99 return NULL; 98 return NULL;
100 } 99 }
101 100
102 user = msim_get_user_from_buddy(buddy, TRUE); 101 return msim_get_user_from_buddy(buddy, TRUE);
103
104 return user;
105 } 102 }
106 103
107 /** 104 /**
108 * Append user information to a PurpleNotifyUserInfo, given an MsimUser. 105 * Append user information to a PurpleNotifyUserInfo, given an MsimUser.
109 * Used by msim_tooltip_text() and msim_get_info_cb() to show a user's profile. 106 * Used by msim_tooltip_text() and msim_get_info_cb() to show a user's profile.

mercurial