plugins/basechat.sp
changeset 2897 bbe23a2483b2
parent 2896 b3553ae4ba05
child 2898 b042cca3960e
     1.1 --- a/plugins/basechat.sp	Sun Jan 10 17:49:44 2010 -0800
     1.2 +++ b/plugins/basechat.sp	Sun Jan 10 17:50:30 2010 -0800
     1.3 @@ -125,12 +125,12 @@
     1.4  	if (msgStart == 1 && CheckCommandAccess(client, "sm_say", ADMFLAG_CHAT)) // sm_say alias
     1.5  	{
     1.6  		SendChatToAll(client, message);
     1.7 -		LogAction(client, -1, "%L triggered sm_say (text %s)", client, message);
     1.8 +		LogAction(client, -1, "\"%L\" triggered sm_say (text %s)", client, message);
     1.9  	}
    1.10  	else if (msgStart == 3 && CheckCommandAccess(client, "sm_csay", ADMFLAG_CHAT)) // sm_csay alias
    1.11  	{
    1.12  		DisplayCenterTextToAll(client, message);
    1.13 -		LogAction(client, -1, "%L triggered sm_csay (text %s)", client, text);		
    1.14 +		LogAction(client, -1, "\"%L\" triggered sm_csay (text %s)", client, text);		
    1.15  	}	
    1.16  	else if (msgStart == 2 && CheckCommandAccess(client, "sm_psay", ADMFLAG_CHAT)) // sm_psay alias
    1.17  	{
    1.18 @@ -156,7 +156,7 @@
    1.19  			PrintToChat(target, "(Private to %s) %s: %s", name2, name, message[len]);			
    1.20  		}
    1.21  
    1.22 -		LogAction(client, -1, "%L triggered sm_psay to %L (text %s)", client, target, message);		
    1.23 +		LogAction(client, -1, "\"%L\" triggered sm_psay to \"%L\" (text %s)", client, target, message);		
    1.24  	}
    1.25  	else
    1.26  		return Plugin_Continue;
    1.27 @@ -191,7 +191,7 @@
    1.28  	strcopy(message, 192, text[startidx+1]);
    1.29  
    1.30  	SendChatToAdmins(client, message);
    1.31 -	LogAction(client, -1, "%L triggered sm_chat (text %s)", client, message);
    1.32 +	LogAction(client, -1, "\"%L\" triggered sm_chat (text %s)", client, message);
    1.33  	
    1.34  	return Plugin_Handled;	
    1.35  }
    1.36 @@ -208,7 +208,7 @@
    1.37  	GetCmdArgString(text, sizeof(text));
    1.38  
    1.39  	SendChatToAll(client, text);
    1.40 -	LogAction(client, -1, "%L triggered sm_say (text %s)", client, text);
    1.41 +	LogAction(client, -1, "\"%L\" triggered sm_say (text %s)", client, text);
    1.42  	
    1.43  	return Plugin_Handled;		
    1.44  }
    1.45 @@ -226,7 +226,7 @@
    1.46  	
    1.47  	DisplayCenterTextToAll(client, text);
    1.48  	
    1.49 -	LogAction(client, -1, "%L triggered sm_csay (text %s)", client, text);
    1.50 +	LogAction(client, -1, "\"%L\" triggered sm_csay (text %s)", client, text);
    1.51  	
    1.52  	return Plugin_Handled;		
    1.53  }
    1.54 @@ -254,7 +254,7 @@
    1.55  		PrintHintText(i, "%s: %s", nameBuf, text);
    1.56  	}
    1.57  	
    1.58 -	LogAction(client, -1, "%L triggered sm_hsay (text %s)", client, text);
    1.59 +	LogAction(client, -1, "\"%L\" triggered sm_hsay (text %s)", client, text);
    1.60  	
    1.61  	return Plugin_Handled;	
    1.62  }
    1.63 @@ -294,7 +294,7 @@
    1.64  		SendDialogToOne(i, color, "%s: %s", nameBuf, text[len]);
    1.65  	}
    1.66  
    1.67 -	LogAction(client, -1, "%L triggered sm_tsay (text %s)", client, text);
    1.68 +	LogAction(client, -1, "\"%L\" triggered sm_tsay (text %s)", client, text);
    1.69  	
    1.70  	return Plugin_Handled;	
    1.71  }
    1.72 @@ -311,7 +311,7 @@
    1.73  	GetCmdArgString(text, sizeof(text));
    1.74  
    1.75  	SendChatToAdmins(client, text);
    1.76 -	LogAction(client, -1, "%L triggered sm_chat (text %s)", client, text);
    1.77 +	LogAction(client, -1, "\"%L\" triggered sm_chat (text %s)", client, text);
    1.78  	
    1.79  	return Plugin_Handled;	
    1.80  }
    1.81 @@ -370,7 +370,7 @@
    1.82  		PrintToChat(target, "(Private: %s) %s: %s", name2, name, message);		
    1.83  	}
    1.84  
    1.85 -	LogAction(client, -1, "%L triggered sm_psay to %L (text %s)", client, target, message);
    1.86 +	LogAction(client, -1, "\"%L\" triggered sm_psay to \"%L\" (text %s)", client, target, message);
    1.87  	
    1.88  	return Plugin_Handled;	
    1.89  }
    1.90 @@ -391,7 +391,7 @@
    1.91  		
    1.92  	SendPanelToAll(name, text);
    1.93  
    1.94 -	LogAction(client, -1, "%L triggered sm_msay (text %s)", client, text);
    1.95 +	LogAction(client, -1, "\"%L\" triggered sm_msay (text %s)", client, text);
    1.96  	
    1.97  	return Plugin_Handled;		
    1.98  }