Skip to content
This repository has been archived by the owner on Dec 23, 2019. It is now read-only.

Everybody can spam players' chat with print() ran on SFScreen #81

Open
Cenius opened this issue Jun 11, 2012 · 1 comment
Open

Everybody can spam players' chat with print() ran on SFScreen #81

Cenius opened this issue Jun 11, 2012 · 1 comment
Labels

Comments

@Cenius
Copy link
Contributor

Cenius commented Jun 11, 2012

This. Needed some restriction like this:

    function SF.DefaultEnvironment.print(s)
        if SF.instance.player == LocalPlayer() then
            LocalPlayer():PrintMessage(HUD_PRINTTALK, tostring(s))
        end
    end
@daranable
Copy link
Member

This will be fixed soon, I am working on a strong Permissions system. This will simply be handled by not allowing the function to run if the owner of the screen isn't the owner of the chip.

Alternatively We can find some better ways to handle it, for instance, if the player recently used the screen, or is actively looking at it, allowing the screen to print. And we can also limit it at that point to not allow the screen to print more than twice a second or something like that.

Those alternatives will cost more, but yeah.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants