1.1 --- a/core/smn_core.cpp Sun Sep 23 06:51:44 2007 +0000
1.2 +++ b/core/smn_core.cpp Sun Sep 23 16:01:12 2007 +0000
1.3 @@ -92,22 +92,20 @@
1.4
1.5 void LogAction(Handle_t hndl, int type, int client, int target, const char *message)
1.6 {
1.7 - if (!g_OnLogAction->GetFunctionCount())
1.8 + if (g_OnLogAction->GetFunctionCount())
1.9 {
1.10 - return;
1.11 - }
1.12 + cell_t result = 0;
1.13 + g_OnLogAction->PushCell(hndl);
1.14 + g_OnLogAction->PushCell(type);
1.15 + g_OnLogAction->PushCell(client);
1.16 + g_OnLogAction->PushCell(target);
1.17 + g_OnLogAction->PushString(message);
1.18 + g_OnLogAction->Execute(&result);
1.19
1.20 - cell_t result = 0;
1.21 - g_OnLogAction->PushCell(hndl);
1.22 - g_OnLogAction->PushCell(type);
1.23 - g_OnLogAction->PushCell(client);
1.24 - g_OnLogAction->PushCell(target);
1.25 - g_OnLogAction->PushString(message);
1.26 - g_OnLogAction->Execute(&result);
1.27 -
1.28 - if (result >= (ResultType)Pl_Handled)
1.29 - {
1.30 - return;
1.31 + if (result >= (ResultType)Pl_Handled)
1.32 + {
1.33 + return;
1.34 + }
1.35 }
1.36
1.37 const char *logtag = "SM";