Browse Source

added /mss (/multisend send) /msg (/multisend group) and /mst(/multisend sendto) aliases, no version bump

pull/1/head
Lolwutt 6 years ago
parent
commit
16697497af
  1. BIN
      release/plugins/MultiSend.dll
  2. 9
      src/MultiSend/Commands.cpp

BIN
release/plugins/MultiSend.dll

Binary file not shown.

9
src/MultiSend/Commands.cpp

@ -15,14 +15,16 @@ bool MultiSend::HandleCommand(const char* command, int32_t type) @@ -15,14 +15,16 @@ bool MultiSend::HandleCommand(const char* command, int32_t type)
com += GetArg(com, &arg);
if (_stricmp(arg.c_str(), "send") == 0)
if ((_stricmp(arg.c_str(), "send") == 0)
|| (_stricmp(command, "/mss") == 0))
{
if (strlen(com) < 2) return true;
SendCommand(0xFFFF0000, com + 1);
return true;
}
if (_stricmp(arg.c_str(), "sendto") == 0)
if ((_stricmp(arg.c_str(), "sendto") == 0)
|| (_stricmp(command, "/mst") == 0))
{
if (strlen(com) < 2)
{
@ -52,7 +54,8 @@ bool MultiSend::HandleCommand(const char* command, int32_t type) @@ -52,7 +54,8 @@ bool MultiSend::HandleCommand(const char* command, int32_t type)
m_AshitaCore->GetChatManager()->Write("MultiSend: Character not found.");
}
if (_stricmp(arg.c_str(), "sendgroup") == 0)
if ((_stricmp(arg.c_str(), "sendgroup") == 0)
|| (_stricmp(command, "/msg") == 0))
{
if (strlen(com) < 3)
{

Loading…
Cancel
Save