Browse Source

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

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

Loading…
Cancel
Save