Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
OrsellGaming committed Dec 20, 2024
2 parents c6c8dff + 32e9de6 commit 4396ea0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions p2mm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1377,7 +1377,7 @@ void CP2MMServerPlugin::FireGameEvent(IGameEvent* event)
if (ge_func)
{
g_pScriptVM->Call<const char*, int, short, const char*, const char*, const char*, bool, int>(ge_func, NULL, false, NULL, name, index, userid, xuid, networkid, address, bot, entindex);
g_pDiscordIntegration->SendWebHookEmbed(std::string(name + std::string(" Joinned!")), std::string(name + std::string(" joinned the server!")));
g_pDiscordIntegration->SendWebHookEmbed(std::string(name + std::string(" Joined!")), std::string(name + std::string(" joined the server!")));
}
}

Expand Down Expand Up @@ -1473,8 +1473,8 @@ void CP2MMServerPlugin::FireGameEvent(IGameEvent* event)
chatMsg.replace(pos, 1, std::string("\\\\"));
pos += std::string("\\\\").length();
}

g_pDiscordIntegration->SendWebHookEmbed(playerName, chatMsg);
if (!chatMsg.starts_with("!"))
g_pDiscordIntegration->SendWebHookEmbed(playerName, chatMsg);
}
}

Expand Down

0 comments on commit 4396ea0

Please sign in to comment.