fix IMs not being hooked up
This commit is contained in:
parent
efab25a36e
commit
d0885f5ca9
2 changed files with 4 additions and 4 deletions
|
@ -7,7 +7,7 @@ namespace Bot.Assemble
|
|||
public class ASMInfo
|
||||
{
|
||||
public static string BotName = "ZBotCore";
|
||||
public static double BotVer = 5.33;
|
||||
public static double BotVer = 5.331;
|
||||
public static string GitPassword
|
||||
{
|
||||
get
|
||||
|
|
|
@ -211,7 +211,7 @@ namespace Bot
|
|||
if (File.Exists("ObjectCache.bdf")) File.Delete("ObjectCache.bdf");
|
||||
client.Self.ChatFromSimulator += onChatRecv;
|
||||
client.Self.GroupChatJoined += onJoinGroupChat;
|
||||
|
||||
client.Self.IM += onIMEvent;
|
||||
//client.Objects.ObjectUpdate += onObjectUpdate;
|
||||
//client.Objects.ObjectProperties += onObjectProperties;
|
||||
|
||||
|
@ -220,7 +220,7 @@ namespace Bot
|
|||
|
||||
//client.Objects.TerseObjectUpdate += onObjectTerseUpdate;
|
||||
|
||||
|
||||
|
||||
client.Settings.OBJECT_TRACKING = true;
|
||||
client.Settings.ALWAYS_DECODE_OBJECTS = true;
|
||||
client.Settings.USE_ASSET_CACHE = true;
|
||||
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue