fixed amb959

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401464
This commit is contained in:
David Anderson 2007-09-23 16:01:12 +00:00
parent 3ca013d7f0
commit 980a8fba7b

View File

@ -92,22 +92,20 @@ public:
void LogAction(Handle_t hndl, int type, int client, int target, const char *message) void LogAction(Handle_t hndl, int type, int client, int target, const char *message)
{ {
if (!g_OnLogAction->GetFunctionCount()) if (g_OnLogAction->GetFunctionCount())
{ {
return; cell_t result = 0;
} g_OnLogAction->PushCell(hndl);
g_OnLogAction->PushCell(type);
g_OnLogAction->PushCell(client);
g_OnLogAction->PushCell(target);
g_OnLogAction->PushString(message);
g_OnLogAction->Execute(&result);
cell_t result = 0; if (result >= (ResultType)Pl_Handled)
g_OnLogAction->PushCell(hndl); {
g_OnLogAction->PushCell(type); return;
g_OnLogAction->PushCell(client); }
g_OnLogAction->PushCell(target);
g_OnLogAction->PushString(message);
g_OnLogAction->Execute(&result);
if (result >= (ResultType)Pl_Handled)
{
return;
} }
const char *logtag = "SM"; const char *logtag = "SM";