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.

pull/1/head
Lolwutt 7 years ago
parent
commit
57d05d2d87
  1. BIN
      release/plugins/MultiSend.dll
  2. 9
      src/MultiSend/IO.cpp
  3. 2
      src/MultiSend/Main.cpp

BIN
release/plugins/MultiSend.dll

Binary file not shown.

9
src/MultiSend/IO.cpp

@ -16,7 +16,14 @@ bool MultiSend::ReadCommand() @@ -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;
}
}

2
src/MultiSend/Main.cpp

@ -116,7 +116,7 @@ __declspec(dllexport) void __stdcall CreatePluginInfo(plugininfo_t* lpBuffer) @@ -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