Skip to content

Commit

Permalink
* allows users section to include UUIDs instead of usernames.
Browse files Browse the repository at this point in the history
* This enables use with rex where the userservice doesn't exist.
  • Loading branch information
SnoopyPfeffer committed Jan 7, 2010
1 parent f9d724c commit f57e5d2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions addon-modules/mod-paypal/PayPalModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -974,6 +974,15 @@ public void FirstRegionLoaded()

foreach (string user in users.GetKeys())
{
UUID tmp;
if(UUID.TryParse(user,out tmp))
{
m_log.Debug("[PayPal] User is UUID, skipping lookup...");
string email = users.GetString(user);
m_usersemail[tmp] = email;
continue;
}

m_log.Debug("[PayPal] Looking up UUID for user " + user);
string[] username = user.Split(new[] { ' ' }, 2);
UserProfileData upd = communicationsManager.UserService.GetUserProfile(username[0], username[1]);
Expand Down

0 comments on commit f57e5d2

Please sign in to comment.