Changeset 5967


Ignore:
Timestamp:
2003-11-25T12:06:02+13:00 (20 years ago)
Author:
jrm21
Message:

don't fill up the error log file if tips aren't defined in the macro files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/tipaction.cpp

    r1285 r5967  
    5252    disp.expandstring ("tip", "_tipmax_", tipmax_str);
    5353    if (tipmax_str.empty()) {
    54       logout << "Warning: _tip:tipmax_ not set. This macro is needed for displaying tips.\n";
     54      // don't bother filling up the logs if tip.dm isn't loaded!
     55      // logout << "Warning: _tip:tipmax_ not set. This macro is needed for displaying tips.\n";
    5556      return;
    5657    }
     
    5859    int tipmax = tipmax_str.getint();
    5960    if (tipmax < 1) {
    60       logout << "Warning: _tip:tipmax_ was less than 1. No tips were set.\n";
     61      // don't bother filling up the logs if tip.dm isn't loaded!
     62      // logout << "Warning: _tip:tipmax_ was less than 1. No tips were set.\n";
    6163      return;
    6264    }
Note: See TracChangeset for help on using the changeset viewer.