added: new plugin message: WINIX_PREPARE_USER_TO_LOGIN
a user will be logged in set PluginInfo::res to false (it is by default) to prevent logging the user directly after this message (if you do not return false) a WINIX_USER_LOGGED is sent in p1 you have a pointer to User struct (if at least one plugin returns false then the user will not be logged) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@820 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -280,7 +280,8 @@ void Plugin::Call(int message, Slots::iterator & slot, PluginInfo & info)
|
||||
slot->second.is_running = false;
|
||||
|
||||
if( config->log_plugin_call )
|
||||
log << log1 << "Plugin: returning from plugin id: " << slot->second.index << ", message: " << message << logend;
|
||||
log << log1 << "Plugin: returning from plugin id: " << slot->second.index << ", message: " << message
|
||||
<< ", result: " << (info.res? "true" : "false") << logend;
|
||||
|
||||
}
|
||||
else
|
||||
@@ -382,10 +383,6 @@ size_t Plugin::Size()
|
||||
}
|
||||
|
||||
|
||||
// !! to nie jest dobre rozwiazanie
|
||||
// obsluga jednego komunikatu moze wywolac inny komunikat
|
||||
// i zmienne sie nadpisza
|
||||
// potrzebujemy cos ala stos wywolan
|
||||
int Plugin::True()
|
||||
{
|
||||
return ret_true;
|
||||
|
Reference in New Issue
Block a user