diff --git a/Assembly/ASMInfo.cs b/Assembly/ASMInfo.cs index e15e6a2..cb51af5 100644 --- a/Assembly/ASMInfo.cs +++ b/Assembly/ASMInfo.cs @@ -6,7 +6,7 @@ using System.Reflection; [assembly: AssemblyCompany("ZNI")] [assembly: AssemblyAlgorithmId(System.Configuration.Assemblies.AssemblyHashAlgorithm.MD5)] [assembly: AssemblyCopyright("(C) 2020 Tara Piccari")] -[assembly: AssemblyFileVersion("5.0.5.1003")] +[assembly: AssemblyFileVersion("5.0.5.1004")] [assembly: AssemblyDescription("Second Life Bot - BotCore5")] @@ -15,7 +15,7 @@ namespace Bot.Assemble public class ASMInfo { public static string BotName = "ZBotCore"; - public static string BotVer = "5.0.5.1003"; + public static string BotVer = "5.0.5.1004"; public static string GitPassword { get diff --git a/RLV.cs b/RLV.cs index 6ed4f18..a02c4a4 100644 --- a/RLV.cs +++ b/RLV.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Text; +using Bot.Assemble; using Bot.CommandSystem; using Bot.NonCommands; using OpenMetaverse; @@ -12,18 +13,18 @@ namespace Bot /// class RLV : BaseCommands, nCMD { - [NotCommand(SourceType = Destinations.DEST_LOCAL)] + [NotCommand(SourceType = Destinations.DEST_LOCAL | Destinations.DEST_AGENT)] public void handle(string text, UUID User, string agentName, Destinations src, UUID originator) { if (text.Substring(0, 1) == "@") { string[] arguments = text.Substring(1).Split(new[] { ':', '=' }); - if(arguments[0] == "version") + if(arguments[0] == "version" || arguments[0] == "versionnew") { - BotSession.Instance.grid.Self.Chat("RLV 0", Convert.ToInt32(arguments[1]), ChatType.RegionSay); - } else if(arguments[0] == "versionnew") - { - BotSession.Instance.grid.Self.Chat("RLV 0", Convert.ToInt32(arguments[1]), ChatType.RegionSay); + if (arguments.Length == 2) + BotSession.Instance.grid.Self.Chat("BotCore Bot v" + ASMInfo.BotVer + " (RLVb 0.0.1)", Convert.ToInt32(arguments[1]), ChatType.Normal); + else + MHE(src, originator, "BotCore Bot v" + ASMInfo.BotVer + " (RLVb 0.0.1)"); } } }