MovieNight/common
Zorchenhimer fab56e39ea Rework emote parsing to properly handle wrapped emotes
Reworked the emote parsing to properly handle "wrapped" emotes.  A
wrapped emote is one that is wrapped in colons or square braces (eg,
:Kappa: or [Kappa]).  This allows emotes to be input without a space
between them, like is required with non-wrapped emotes.

A new configuration setting has been added to only allow parsing of
wrapped emotes: "WrappedEmotesOnly".  This defaults to False as to not
break current configurations.

The emote autocompletion will only insert non-wrapped emotes.  Setting
"WrappedEmotesOnly" configuration value to True will not change this.

Lastly, made the bare-word emote parsing a bit cleaner by removing a for
loop in favor of a map lookup with a check.  This should in theory be
more efficient.

This change is in response to #111.  The issue should not be considered
resolved until the autocompletion handles the new setting correctly.
2020-04-19 12:26:27 -04:00
..
chatcommands.go Add an emote list 2019-11-29 12:48:17 -05:00
chatdata.go Adding some hardening to user joining 2019-04-13 13:12:08 -04:00
colors.go Add rand seed so the colors aren't the same 2019-04-14 21:02:44 -04:00
colors_test.go Get rid of dependency on go-colorful 2019-04-14 01:46:24 -04:00
constants.go Add an emote list 2019-11-29 12:48:17 -05:00
emotes.go Rework emote parsing to properly handle wrapped emotes 2020-04-19 12:26:27 -04:00
emotes_test.go Rework emote parsing to properly handle wrapped emotes 2020-04-19 12:26:27 -04:00
logging.go Added spoilers in chat 2019-03-24 23:43:30 -04:00
logging_dev.go Remove inits since it is startup code 2019-03-24 23:54:24 -04:00
templates.go Add an emote list 2019-11-29 12:48:17 -05:00
utils.go Use better name error; Tweak name requirements 2019-11-28 20:06:15 -05:00