aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/Avatar
diff options
context:
space:
mode:
authorJustin Clarke Casey2009-01-07 20:46:28 +0000
committerJustin Clarke Casey2009-01-07 20:46:28 +0000
commitb97a51d7d0dc0946e5bf5e42c69a40a68af4d01b (patch)
tree84699c8f1264e94c338848458f1d4e27106a13c9 /OpenSim/Region/Environment/Modules/Avatar
parent* Move general alert code to DialogModule. (diff)
downloadopensim-SC_OLD-b97a51d7d0dc0946e5bf5e42c69a40a68af4d01b.zip
opensim-SC_OLD-b97a51d7d0dc0946e5bf5e42c69a40a68af4d01b.tar.gz
opensim-SC_OLD-b97a51d7d0dc0946e5bf5e42c69a40a68af4d01b.tar.bz2
opensim-SC_OLD-b97a51d7d0dc0946e5bf5e42c69a40a68af4d01b.tar.xz
* refactor: Make some direct IClientAPI calls go through the dialog module instead
Diffstat (limited to 'OpenSim/Region/Environment/Modules/Avatar')
-rw-r--r--OpenSim/Region/Environment/Modules/Avatar/Dialog/DialogModule.cs12
1 files changed, 11 insertions, 1 deletions
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
53 public string Name { get { return "Dialog Module"; } } 53 public string Name { get { return "Dialog Module"; } }
54 public bool IsSharedModule { get { return false; } } 54 public bool IsSharedModule { get { return false; } }
55 55
56 public void SendAlertToUser(IClientAPI client, string message)
57 {
58 SendAlertToUser(client, message, false);
59 }
60
61 public void SendAlertToUser(IClientAPI client, string message, bool modal)
62 {
63 client.SendAgentAlertMessage(message, modal);
64 }
65
56 public void SendAlertToUser(UUID agentID, string message) 66 public void SendAlertToUser(UUID agentID, string message)
57 { 67 {
58 SendAlertToUser(agentID, message, false); 68 SendAlertToUser(agentID, message, false);
@@ -64,7 +74,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Dialog
64 74
65 if (sp != null) 75 if (sp != null)
66 sp.ControllingClient.SendAgentAlertMessage(message, modal); 76 sp.ControllingClient.SendAgentAlertMessage(message, modal);
67 } 77 }
68 78
69 public void SendAlertToUser(string firstName, string lastName, string message, bool modal) 79 public void SendAlertToUser(string firstName, string lastName, string message, bool modal)
70 { 80 {