Skip to content

Commit 37bd81a

Browse files
authored
Merge pull request #32 from CookStar/dev
Fixed SayFilter not returning all text.
2 parents b006f2e + ff0de0a commit 37bd81a

File tree

1 file changed

+2
-2
lines changed
  • addons/source-python/plugins/es_emulator

1 file changed

+2
-2
lines changed

addons/source-python/plugins/es_emulator/logic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def on_say(command, index, team_only):
342342

343343
# TODO: es.regsaycmd() should be handled here and not with SP's
344344
# get_say_command()
345-
if es.addons.sayFilter(userid, command.arg_string, team_only):
345+
if es.addons.sayFilter(userid, command.command_string, team_only):
346346
return CommandReturn.CONTINUE
347347

348348
return CommandReturn.BLOCK
@@ -358,7 +358,7 @@ def fire_es_player_chat(command, userid, team_only):
358358
event.set_int('userid', userid)
359359
event.set_bool('teamonly', team_only)
360360

361-
full_text = command.arg_string
361+
full_text = command.command_string
362362
if (userid > 0 and full_text[0] == '"'
363363
and full_text[-1] == '"'
364364
and full_text.count('"') <= 2):

0 commit comments

Comments
 (0)