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 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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue