Earu / EasyChat

A modular Garry's Mod chat addon for both users and developers.
https://steamcommunity.com/sharedfiles/filedetails/?id=1182471500
GNU General Public License v3.0
91 stars 33 forks source link

Starfall module Error #80

Closed KyleNaCl closed 2 years ago

KyleNaCl commented 2 years ago

Due to my server not having starfall installed, there is a lua error everytime there its a chat message sent

lua/easychat/modules/client/starfall_compat.lua:19: attempt to index field 'SF' (a nil value)

hook.Add("ECPostAddText", TAG, function()
    _G.SF.runningOps = previous_ops_state
end)

This hook just needs a check for if "SF" is valid

For now I can just disable this module to fix it

Earu commented 2 years ago

Thank you for the heads-up, it's now fixed, see https://github.com/Earu/EasyChat/commit/f834f2c3a605634fd74f8c1f783c191d2e21e8af