Changeset 04ef932 in nscp for modules/CheckNSCP


Ignore:
Timestamp:
08/10/11 07:37:24 (22 months ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2
Children:
54ac968
Parents:
e11d494
Message:

2011-08-10

  • Fixed so it builds and runs on linux (but parser had issues so disabled som grammar rules whichneeds to be enabled again)
  • Added a lot of freatures and cleand up the PythonScript module
  • Started to merge som features from PythonScript back to Lua script


2011-08-07

  • Fixed a lot of issues with PythonScript module adding suport for alias and "raw command processing"
  • Fixed issue with loading plugins and aliases as well as duplicate plugin detection


2011-08-01

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/CheckNSCP/CheckNSCP.cpp

    re11d494 r04ef932  
    2222 
    2323#include <file_helpers.hpp> 
     24#include <unicode_char.hpp> 
    2425 
    2526#include <settings/client/settings_client.hpp> 
     
    8586 
    8687int CheckNSCP::get_crashes(std::wstring &last_crash) { 
     88#ifdef WIN32 
    8789  if (!file_helpers::checks::is_directory(crashFolder)) { 
    8890    return 0; 
     
    109111    last_crash = last_file; 
    110112  return count; 
     113#else 
     114  return 0; 
     115#endif 
    111116} 
    112117 
     
    125130  std::wstring last_crash; 
    126131  int crash_count = get_crashes(last_crash); 
    127   if (crash_count > 0) 
    128     strEx::append_list(msg, strEx::itos(crash_count) + _T(" crash(es), last crash: ") + last_crash, _T(", ")); 
     132  if (crash_count > 0){ 
     133    std::wstring tmp = strEx::itos(crash_count) + _T(" crash(es), last crash: ") + last_crash; 
     134    strEx::append_list(msg, tmp, _T(", ")); 
     135  } 
    129136 
    130137  std::wstring last_error; 
    131138  int err_count = get_errors(last_error); 
    132   if (err_count > 0) 
    133     strEx::append_list(msg, strEx::itos(err_count) + _T(" error(s), last error: ") + last_error, _T(", ")); 
     139  if (err_count > 0) { 
     140    std::wstring tmp = strEx::itos(err_count) + _T(" error(s), last error: ") + last_error; 
     141    strEx::append_list(msg, tmp, _T(", ")); 
     142  } 
    134143 
    135144  if (msg.empty()) 
Note: See TracChangeset for help on using the changeset viewer.