diff --git a/OpenMetaverse/FriendsManager.cs b/OpenMetaverse/FriendsManager.cs index 4c5aec37..9fcdb56b 100644 --- a/OpenMetaverse/FriendsManager.cs +++ b/OpenMetaverse/FriendsManager.cs @@ -390,10 +390,20 @@ namespace OpenMetaverse } /// - /// Offer friendship to an avatar. + /// Overload: Offer friendship to an avatar. /// /// System ID of the avatar you are offering friendship to public void OfferFriendship(UUID agentID) + { + OfferFriendship(agentID, "Do ya wanna be my buddy?"); + } + + /// + /// Offer friendship to an avatar. + /// + /// System ID of the avatar you are offering friendship to + /// A message to send with the request + public void OfferFriendship(UUID agentID, string message) { // HACK: folder id stored as "message" UUID callingCardFolder = Client.Inventory.FindFolderForType(AssetType.CallingCard); @@ -405,7 +415,7 @@ namespace OpenMetaverse InstantMessageOnline.Online, Client.Self.SimPosition, Client.Network.CurrentSim.ID, - Utils.EmptyBytes); + Utils.StringToBytes(message)); }