Fixed lack of quotes on some basechat log messages (bug 4132, r=dvander).

This commit is contained in:
Nicholas Hastings 2010-01-10 17:50:30 -08:00
parent a76f9e11fb
commit 4dc2227f23

View File

@ -125,12 +125,12 @@ public Action:Command_SayChat(client, args)
if (msgStart == 1 && CheckCommandAccess(client, "sm_say", ADMFLAG_CHAT)) // sm_say alias if (msgStart == 1 && CheckCommandAccess(client, "sm_say", ADMFLAG_CHAT)) // sm_say alias
{ {
SendChatToAll(client, message); SendChatToAll(client, message);
LogAction(client, -1, "%L triggered sm_say (text %s)", client, message); LogAction(client, -1, "\"%L\" triggered sm_say (text %s)", client, message);
} }
else if (msgStart == 3 && CheckCommandAccess(client, "sm_csay", ADMFLAG_CHAT)) // sm_csay alias else if (msgStart == 3 && CheckCommandAccess(client, "sm_csay", ADMFLAG_CHAT)) // sm_csay alias
{ {
DisplayCenterTextToAll(client, message); DisplayCenterTextToAll(client, message);
LogAction(client, -1, "%L triggered sm_csay (text %s)", client, text); LogAction(client, -1, "\"%L\" triggered sm_csay (text %s)", client, text);
} }
else if (msgStart == 2 && CheckCommandAccess(client, "sm_psay", ADMFLAG_CHAT)) // sm_psay alias else if (msgStart == 2 && CheckCommandAccess(client, "sm_psay", ADMFLAG_CHAT)) // sm_psay alias
{ {
@ -156,7 +156,7 @@ public Action:Command_SayChat(client, args)
PrintToChat(target, "(Private to %s) %s: %s", name2, name, message[len]); PrintToChat(target, "(Private to %s) %s: %s", name2, name, message[len]);
} }
LogAction(client, -1, "%L triggered sm_psay to %L (text %s)", client, target, message); LogAction(client, -1, "\"%L\" triggered sm_psay to \"%L\" (text %s)", client, target, message);
} }
else else
return Plugin_Continue; return Plugin_Continue;
@ -191,7 +191,7 @@ public Action:Command_SayAdmin(client, args)
strcopy(message, 192, text[startidx+1]); strcopy(message, 192, text[startidx+1]);
SendChatToAdmins(client, message); SendChatToAdmins(client, message);
LogAction(client, -1, "%L triggered sm_chat (text %s)", client, message); LogAction(client, -1, "\"%L\" triggered sm_chat (text %s)", client, message);
return Plugin_Handled; return Plugin_Handled;
} }
@ -208,7 +208,7 @@ public Action:Command_SmSay(client, args)
GetCmdArgString(text, sizeof(text)); GetCmdArgString(text, sizeof(text));
SendChatToAll(client, text); SendChatToAll(client, text);
LogAction(client, -1, "%L triggered sm_say (text %s)", client, text); LogAction(client, -1, "\"%L\" triggered sm_say (text %s)", client, text);
return Plugin_Handled; return Plugin_Handled;
} }
@ -226,7 +226,7 @@ public Action:Command_SmCsay(client, args)
DisplayCenterTextToAll(client, text); DisplayCenterTextToAll(client, text);
LogAction(client, -1, "%L triggered sm_csay (text %s)", client, text); LogAction(client, -1, "\"%L\" triggered sm_csay (text %s)", client, text);
return Plugin_Handled; return Plugin_Handled;
} }
@ -254,7 +254,7 @@ public Action:Command_SmHsay(client, args)
PrintHintText(i, "%s: %s", nameBuf, text); PrintHintText(i, "%s: %s", nameBuf, text);
} }
LogAction(client, -1, "%L triggered sm_hsay (text %s)", client, text); LogAction(client, -1, "\"%L\" triggered sm_hsay (text %s)", client, text);
return Plugin_Handled; return Plugin_Handled;
} }
@ -294,7 +294,7 @@ public Action:Command_SmTsay(client, args)
SendDialogToOne(i, color, "%s: %s", nameBuf, text[len]); SendDialogToOne(i, color, "%s: %s", nameBuf, text[len]);
} }
LogAction(client, -1, "%L triggered sm_tsay (text %s)", client, text); LogAction(client, -1, "\"%L\" triggered sm_tsay (text %s)", client, text);
return Plugin_Handled; return Plugin_Handled;
} }
@ -311,7 +311,7 @@ public Action:Command_SmChat(client, args)
GetCmdArgString(text, sizeof(text)); GetCmdArgString(text, sizeof(text));
SendChatToAdmins(client, text); SendChatToAdmins(client, text);
LogAction(client, -1, "%L triggered sm_chat (text %s)", client, text); LogAction(client, -1, "\"%L\" triggered sm_chat (text %s)", client, text);
return Plugin_Handled; return Plugin_Handled;
} }
@ -370,7 +370,7 @@ public Action:Command_SmPsay(client, args)
PrintToChat(target, "(Private: %s) %s: %s", name2, name, message); PrintToChat(target, "(Private: %s) %s: %s", name2, name, message);
} }
LogAction(client, -1, "%L triggered sm_psay to %L (text %s)", client, target, message); LogAction(client, -1, "\"%L\" triggered sm_psay to \"%L\" (text %s)", client, target, message);
return Plugin_Handled; return Plugin_Handled;
} }
@ -391,7 +391,7 @@ public Action:Command_SmMsay(client, args)
SendPanelToAll(name, text); SendPanelToAll(name, text);
LogAction(client, -1, "%L triggered sm_msay (text %s)", client, text); LogAction(client, -1, "\"%L\" triggered sm_msay (text %s)", client, text);
return Plugin_Handled; return Plugin_Handled;
} }