public unsafe byte ProcessChatInput_Hook(IntPtr pThis, IntPtr pWindow, IntPtr pCmdText) { StdString tokenized = StdString.Create(); ChatGUIModule_t.ExpandChatTextArgs(tokenized.Pointer, pCmdText); _lastChatInput = tokenized.ToString(); _lastChatInputWindowPtr = pWindow; return(CommandInterpreter_c.ProcessChatInput(pThis, pWindow, pCmdText)); }
public unsafe void HandleGroupMessageHook(IntPtr pThis, IntPtr pGroupMessage) { bool cancel = false; if (_pluginProxy != null) { cancel = _pluginProxy.HandleGroupMessage(pGroupMessage); } if (!cancel) { ChatGUIModule_t.HandleGroupMessage(pThis, pGroupMessage); } }