Added an error message to openmail (#6243)

Fixes #6159

Thanks to @SynchronyMaster
This commit is contained in:
Lemongrass3110
2021-09-08 08:27:09 +02:00
committed by GitHub
parent b75b8ffafb
commit 870e3d9407
2 changed files with 9 additions and 1 deletions

View File

@@ -19435,14 +19435,20 @@ BUILDIN_FUNC(warpportal)
**/
BUILDIN_FUNC(openmail)
{
TBL_PC* sd;
struct map_session_data* sd;
if (!script_charid2sd(2,sd))
return SCRIPT_CMD_FAILURE;
#if PACKETVER < 20150513
mail_openmail(sd);
return SCRIPT_CMD_SUCCESS;
#else
ShowError( "buildin_openmail: This command is not supported for PACKETVER 2015-05-13 or newer.\n" );
return SCRIPT_CMD_FAILURE;
#endif
}
/**