2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-14 02:27:40 -04:00

Add better error handling to app.event console command

This commit is contained in:
Branan Purvine-Riley
2014-03-16 14:38:49 -07:00
committed by Darryl Pogue
parent 613b001678
commit ff13a26e8a

View File

@ -2144,8 +2144,18 @@ PF_CONSOLE_CMD( App,
if( !stricmp(eventStr, "Time") )
{
event = kTime;
if (numParams < 2)
{
PrintString("'Time' expects a timestamp (in seconds)");
return;
}
secs = params[2];
}
else
{
PrintString("Unknown event type. Options are 'Start', 'Stop', and 'Time'");
return;
}
if( numParams > 3 )
{
reps = params[3];