Do not issue any chat if chat is off.
This commit is contained in:
parent
2eef246e97
commit
b50d6b198c
1 changed files with 2 additions and 2 deletions
|
|
@ -418,7 +418,7 @@ bool Bot::isReplyingToChat (void) {
|
|||
void Bot::say (const char *text) {
|
||||
// this function prints saytext message to all players
|
||||
|
||||
if (isEmptyStr (text)) {
|
||||
if (isEmptyStr (text) || !yb_chat.boolean ()) {
|
||||
return;
|
||||
}
|
||||
engine.execBotCmd (ent (), "say \"%s\"", text);
|
||||
|
|
@ -427,7 +427,7 @@ void Bot::say (const char *text) {
|
|||
void Bot::sayTeam (const char *text) {
|
||||
// this function prints saytext message only for teammates
|
||||
|
||||
if (isEmptyStr (text)) {
|
||||
if (isEmptyStr (text) || !yb_chat.boolean ()) {
|
||||
return;
|
||||
}
|
||||
engine.execBotCmd (ent (), "say_team \"%s\"", text);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue