do not attempt to include discord if its disabled

This commit is contained in:
Lorenc Pekaj 2019-05-30 23:14:55 +10:00
parent 2e0e74cc36
commit b649050e70

View File

@ -10,10 +10,13 @@
/* ** Includes ** */
#include < YSI\y_hooks >
#tryinclude < discord-connector >
#tryinclude < discord-command >
/* ** Disable if discord connector not enabled ** */
#if !defined DISCORD_DISABLED
#tryinclude < discord-connector >
#tryinclude < discord-command >
#endif
#if !defined dcconnector_included && !defined DISCORD_DISABLED
#warning "Discord is disabled as the connector is not found. (https://github.com/maddinat0r/samp-discord-connector)"
#define DISCORD_DISABLED