Browse Source

1.01 - Commands will now be read by plugins if shorthand is loaded. If not, they will not be. This is necessary to ensure [] commands will resolve correctly.

master
Lolwutt 3 years ago
parent
commit
57d05d2d87
3 changed files with 9 additions and 2 deletions
  1. BIN
      release/plugins/MultiSend.dll
  2. +8
    -1
      src/MultiSend/IO.cpp
  3. +1
    -1
      src/MultiSend/Main.cpp

BIN
release/plugins/MultiSend.dll View File


+ 8
- 1
src/MultiSend/IO.cpp View File

@ -16,7 +16,14 @@ bool MultiSend::ReadCommand()
{
m_AshitaCore->GetChatManager()->Writef("Sending command: %s", text);
}
m_AshitaCore->GetChatManager()->QueueCommand(text, 0);
if (m_AshitaCore->GetPluginManager()->GetPlugin("Shorthand"))
{
m_AshitaCore->GetChatManager()->QueueCommand(text, -1);
}
else
{
m_AshitaCore->GetChatManager()->QueueCommand(text, 0);
}
delete text;
}
}


+ 1
- 1
src/MultiSend/Main.cpp View File

@ -116,7 +116,7 @@ __declspec(dllexport) void __stdcall CreatePluginInfo(plugininfo_t* lpBuffer)
strcpy_s(g_PluginInfo->Author, sizeof(g_PluginInfo->Author), "Thorny");
g_PluginInfo->InterfaceVersion = ASHITA_INTERFACE_VERSION;
g_PluginInfo->PluginVersion = 1.00f;
g_PluginInfo->PluginVersion = 1.01f;
g_PluginInfo->Priority = 0;
}


Loading…
Cancel
Save