aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Avatar/Commands
diff options
context:
space:
mode:
authorMelanie2019-08-20 23:28:59 +0100
committerMelanie2019-08-20 23:28:59 +0100
commit0fd17c08ae642fac17b24dfad06c61cfe5739483 (patch)
tree4871c96eab2f5b118cb09d670a3a4ba024cf1210 /OpenSim/Region/CoreModules/Avatar/Commands
parentchange PGSQL migration (diff)
downloadopensim-SC-0fd17c08ae642fac17b24dfad06c61cfe5739483.zip
opensim-SC-0fd17c08ae642fac17b24dfad06c61cfe5739483.tar.gz
opensim-SC-0fd17c08ae642fac17b24dfad06c61cfe5739483.tar.bz2
opensim-SC-0fd17c08ae642fac17b24dfad06c61cfe5739483.tar.xz
Massive console refactor. Greatly simplify interface.
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar/Commands')
-rwxr-xr-x[-rw-r--r--]OpenSim/Region/CoreModules/Avatar/Commands/UserCommandsModule.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Commands/UserCommandsModule.cs b/OpenSim/Region/CoreModules/Avatar/Commands/UserCommandsModule.cs
index cf65c47..d98f11a 100644..100755
--- a/OpenSim/Region/CoreModules/Avatar/Commands/UserCommandsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Commands/UserCommandsModule.cs
@@ -135,7 +135,7 @@ namespace OpenSim.Region.CoreModules.Avatars.Commands
135 { 135 {
136 if (cmd.Length < 5) 136 if (cmd.Length < 5)
137 { 137 {
138 MainConsole.Instance.OutputFormat("Usage: " + TeleportUserCommandSyntax); 138 MainConsole.Instance.Output("Usage: " + TeleportUserCommandSyntax);
139 return; 139 return;
140 } 140 }
141 141
@@ -147,7 +147,7 @@ namespace OpenSim.Region.CoreModules.Avatars.Commands
147 147
148 if (user == null) 148 if (user == null)
149 { 149 {
150 MainConsole.Instance.OutputFormat("No user found with name {0} {1}", firstName, lastName); 150 MainConsole.Instance.Output("No user found with name {0} {1}", null, firstName, lastName);
151 return; 151 return;
152 } 152 }
153 153
@@ -161,7 +161,7 @@ namespace OpenSim.Region.CoreModules.Avatars.Commands
161 161
162 if (!m.Success) 162 if (!m.Success)
163 { 163 {
164 MainConsole.Instance.OutputFormat("Invalid destination {0}", rawDestination); 164 MainConsole.Instance.Output("Invalid destination {0}", null, rawDestination);
165 return; 165 return;
166 } 166 }
167 } 167 }
@@ -169,8 +169,9 @@ namespace OpenSim.Region.CoreModules.Avatars.Commands
169 string regionName 169 string regionName
170 = m.Groups["regionName"].Success ? m.Groups["regionName"].Value : user.Scene.RegionInfo.RegionName; 170 = m.Groups["regionName"].Success ? m.Groups["regionName"].Value : user.Scene.RegionInfo.RegionName;
171 171
172 MainConsole.Instance.OutputFormat( 172 MainConsole.Instance.Output(
173 "Teleporting {0} to {1},{2},{3} in {4}", 173 "Teleporting {0} to {1},{2},{3} in {4}",
174 null,
174 user.Name, 175 user.Name,
175 m.Groups["x"], m.Groups["y"], m.Groups["z"], 176 m.Groups["x"], m.Groups["y"], m.Groups["z"],
176 regionName); 177 regionName);