From b97a51d7d0dc0946e5bf5e42c69a40a68af4d01b Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Wed, 7 Jan 2009 20:46:28 +0000 Subject: * refactor: Make some direct IClientAPI calls go through the dialog module instead --- .../Region/Environment/Modules/Avatar/Dialog/DialogModule.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Environment/Modules/Avatar') diff --git a/OpenSim/Region/Environment/Modules/Avatar/Dialog/DialogModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Dialog/DialogModule.cs index 14a05ae..430968d 100644 --- a/OpenSim/Region/Environment/Modules/Avatar/Dialog/DialogModule.cs +++ b/OpenSim/Region/Environment/Modules/Avatar/Dialog/DialogModule.cs @@ -53,6 +53,16 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Dialog public string Name { get { return "Dialog Module"; } } public bool IsSharedModule { get { return false; } } + public void SendAlertToUser(IClientAPI client, string message) + { + SendAlertToUser(client, message, false); + } + + public void SendAlertToUser(IClientAPI client, string message, bool modal) + { + client.SendAgentAlertMessage(message, modal); + } + public void SendAlertToUser(UUID agentID, string message) { SendAlertToUser(agentID, message, false); @@ -64,7 +74,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Dialog if (sp != null) sp.ControllingClient.SendAgentAlertMessage(message, modal); - } + } public void SendAlertToUser(string firstName, string lastName, string message, bool modal) { -- cgit v1.1