Ayuto / EventScripts-Emulator

A Source.Python plugin that is able to run EventScripts addons.
16 stars 9 forks source link

Fixed SayFilter not returning all text. #32

Closed CookStar closed 4 years ago

CookStar commented 4 years ago

command.arg_string does not return all text, so fix it to command.command_string.

from commands import CommandReturn
from commands.say import SayFilter

@SayFilter
def on_say(command, index, team_only):
    #say this is my text
    print(command.command_string)#this is my text
    print(command.arg_string)#is my text
    return CommandReturn.CONTINUE
Ayuto commented 4 years ago

Good catch, thanks! :)