fix IMs not being hooked up

This commit is contained in:
Zontreck 2020-03-10 15:42:32 -07:00
parent efab25a36e
commit d0885f5ca9
2 changed files with 4 additions and 4 deletions

View file

@ -7,7 +7,7 @@ namespace Bot.Assemble
public class ASMInfo public class ASMInfo
{ {
public static string BotName = "ZBotCore"; public static string BotName = "ZBotCore";
public static double BotVer = 5.33; public static double BotVer = 5.331;
public static string GitPassword public static string GitPassword
{ {
get get

View file

@ -211,7 +211,7 @@ namespace Bot
if (File.Exists("ObjectCache.bdf")) File.Delete("ObjectCache.bdf"); if (File.Exists("ObjectCache.bdf")) File.Delete("ObjectCache.bdf");
client.Self.ChatFromSimulator += onChatRecv; client.Self.ChatFromSimulator += onChatRecv;
client.Self.GroupChatJoined += onJoinGroupChat; client.Self.GroupChatJoined += onJoinGroupChat;
client.Self.IM += onIMEvent;
//client.Objects.ObjectUpdate += onObjectUpdate; //client.Objects.ObjectUpdate += onObjectUpdate;
//client.Objects.ObjectProperties += onObjectProperties; //client.Objects.ObjectProperties += onObjectProperties;
@ -686,7 +686,7 @@ namespace Bot
public void onIMEvent(object sender, InstantMessageEventArgs e) public static void onIMEvent(object sender, InstantMessageEventArgs e)
{ {
if (e.IM.FromAgentID == client.Self.AgentID) return; if (e.IM.FromAgentID == client.Self.AgentID) return;