Changeset 5980 for branches/newosd

Show
Ignore:
Timestamp:
01/02/08 11:50:06 (11 months ago)
Author:
eugene
Message:

Made status reporting be correct.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/newosd/src/plugin.cpp

    r5973 r5980  
    77 
    88#include "iface.h" 
     9 
     10bool blocked = false; 
    911 
    1012const char* LP_Name() 
     
    4042const char* LP_Status() 
    4143{ 
    42   static const char status[] = "running"; 
    43   return status; 
     44  static const char enabled[] = "enabled"; 
     45  static const char disabled[] = "disabled"; 
     46  return blocked ? disabled : enabled; 
    4447} 
    4548 
     
    6467      SIGNAL_LOGON | 
    6568      SIGNAL_LOGOFF); 
    66   bool finita = false, blocked = false; 
     69  bool finita = false; 
    6770  char msg[3]; 
    6871