diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Dialog/DialogModule.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Dialog/DialogModule.cs b/OpenSim/Region/CoreModules/Avatar/Dialog/DialogModule.cs index b5c3176..4e36c5d 100644 --- a/OpenSim/Region/CoreModules/Avatar/Dialog/DialogModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Dialog/DialogModule.cs | |||
@@ -55,6 +55,11 @@ namespace OpenSim.Region.CoreModules.Avatar.Dialog | |||
55 | 55 | ||
56 | m_scene.AddCommand( | 56 | m_scene.AddCommand( |
57 | this, "alert general", "alert general <message>", "Send an alert to everyone", HandleAlertConsoleCommand); | 57 | this, "alert general", "alert general <message>", "Send an alert to everyone", HandleAlertConsoleCommand); |
58 | |||
59 | m_scene.AddCommand( | ||
60 | this, "alert dialog", "alert dialog <message>", "Send a dialog alert to everyone", HandleAlertConsoleCommand); | ||
61 | |||
62 | |||
58 | } | 63 | } |
59 | 64 | ||
60 | public void PostInitialise() {} | 65 | public void PostInitialise() {} |
@@ -181,6 +186,14 @@ namespace OpenSim.Region.CoreModules.Avatar.Dialog | |||
181 | "[DIALOG]: Sending general alert in region {0} with message {1}", m_scene.RegionInfo.RegionName, message); | 186 | "[DIALOG]: Sending general alert in region {0} with message {1}", m_scene.RegionInfo.RegionName, message); |
182 | SendGeneralAlert(message); | 187 | SendGeneralAlert(message); |
183 | } | 188 | } |
189 | else if (cmdparams[1] == "dialog") | ||
190 | { | ||
191 | string message = CombineParams(cmdparams, 2); | ||
192 | |||
193 | m_log.InfoFormat( | ||
194 | "[DIALOG]: Sending dialog alert in region {0} with message {1}", m_scene.RegionInfo.RegionName, message); | ||
195 | SendNotificationToUsersInRegion(UUID.Zero, "System", message); | ||
196 | } | ||
184 | else | 197 | else |
185 | { | 198 | { |
186 | string firstName = cmdparams[1]; | 199 | string firstName = cmdparams[1]; |