// Receive a directed message from a channel void OnChannelDirectedMessage(ChannelDirectedMessageEventArgs channelDirectedMessageArgs) { UnityEngine.Debug.Log("IpcIrc:HelperBroadcast: RECEIVE DIRECT MESSAGE ON " + channelDirectedMessageArgs.Channel + ": " + channelDirectedMessageArgs.From + ": " + channelDirectedMessageArgs.Message); channelDirectedMessageArgs.Message = channelDirectedMessageArgs.Message.Substring(IpcIrc.Instance.Nickname.Length + 2); // Trim the nickname off. if (channelDirectedMessageArgs.Message.StartsWith("you are terminated")) { UnityEngine.Debug.Log("IpcIrc:HelperBroadcast: RECEIVE TERMINATE COMMAND ON " + channelDirectedMessageArgs.Channel + ": " + channelDirectedMessageArgs.From + ": " + channelDirectedMessageArgs.Message); Skynet(); } }
// Receive a directed message from a channel void OnChannelDirectedMessage(ChannelDirectedMessageEventArgs channelDirectedMessageArgs) { if (debugLogDirectedMessages) UnityEngine.Debug.Log("IpcIrc:JohnConnor: RECEIVE DIRECT MESSAGE ON " + channelDirectedMessageArgs.Channel + ": " + channelDirectedMessageArgs.From + ": " + channelDirectedMessageArgs.Message); if (debugEchoDirectedMessages) IpcIrc.Instance.Message("IpcIrc:JohnConnor: RECEIVE DIRECT MESSAGE ON " + channelDirectedMessageArgs.Channel + ": " + channelDirectedMessageArgs.From + ": " + channelDirectedMessageArgs.Message); channelDirectedMessageArgs.Message = channelDirectedMessageArgs.Message.Substring(IpcIrc.Instance.Nickname.Length + 2); // Trim the nickname off. if (channelDirectedMessageArgs.Message.StartsWith("time travel")) { if (debugLogDirectedMessages) UnityEngine.Debug.Log("IpcIrc:JohnConnor: RECEIVE TRAVEL COMMAND ON " + channelDirectedMessageArgs.Channel + ": " + channelDirectedMessageArgs.From + ": " + channelDirectedMessageArgs.Message); if (debugEchoDirectedMessages) IpcIrc.Instance.Message("IpcIrc:JohnConnor: RECEIVE TRAVEL COMMAND ON " + channelDirectedMessageArgs.Channel + ": " + channelDirectedMessageArgs.From + ": " + channelDirectedMessageArgs.Message); IpcIrc.Instance.Disconnect(); } if (channelDirectedMessageArgs.Message.StartsWith("you are terminated")) { if (debugLogDirectedMessages) UnityEngine.Debug.Log("IpcIrc:JohnConnor: RECEIVE TERMINATE COMMAND ON " + channelDirectedMessageArgs.Channel + ": " + channelDirectedMessageArgs.From + ": " + channelDirectedMessageArgs.Message); if (debugEchoDirectedMessages) IpcIrc.Instance.Message("IpcIrc:JohnConnor: RECEIVE TERMINATE COMMAND ON " + channelDirectedMessageArgs.Channel + ": " + channelDirectedMessageArgs.From + ": " + channelDirectedMessageArgs.Message); Skynet(); } }
// Receive a directed message from a channel void OnChannelDirectedMessage(ChannelDirectedMessageEventArgs channelDirectedMessageArgs) { if (debugLogDirectedMessages) UnityEngine.Debug.Log("IpcIrcDebug: DIRECTED MESSAGE ON " + channelDirectedMessageArgs.Channel + ": " + channelDirectedMessageArgs.From + ": " + channelDirectedMessageArgs.Message); if (debugEchoDirectedMessages) IpcIrc.Instance.Message("IpcIrcDebug: DIRECTED MESSAGE ON " + channelDirectedMessageArgs.Channel + ": " + channelDirectedMessageArgs.From + ": " + channelDirectedMessageArgs.Message); }