PennMUSH Community

Changeset 1237 for 1.8.3/branches

Show
Ignore:
Timestamp:
06/20/08 12:28:19 (2 months ago)
Author:
walker
Message:

Fixes an infinite loop caused by a command being run after hitting CPU limit.

e.g:

&foo bar=$+foo:think iter(lnum(1000),sql(complex query)) ; @pemit foo=bar

The @pemit foo=bar will loop infinitely, because the first command has hit
CPU_LIMIT.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 1.8.3/branches/devel/src/command.c

    r1208 r1237  
    913913    while (*f == ' ') 
    914914      f++; 
    915     process_expression(to, &t, (const char **) &f, player, cause, cause, 
    916                        parse, (split | args), NULL); 
     915    if (process_expression(to, &t, (const char **) &f, player, cause, cause, 
     916                           parse, (split | args), NULL)) { 
     917      done = 1; 
     918    } 
    917919    *t = '\0'; 
    918920    if (args) {