mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-20 20:01:17 +00:00
[editor] Add all template functions to highlighter
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
2dc0250800
commit
00f88e17ce
2 changed files with 4 additions and 6 deletions
|
@ -11,9 +11,10 @@
|
|||
* [templating] Add `jsonAPI` template function
|
||||
|
||||
* Improvements
|
||||
* ⚠ [core] Move storage to database (#30, #32)
|
||||
* [core] Move storage to database (#30, #32) ⚠
|
||||
* [core] Allow to pass ID to channel modification
|
||||
* ⚠ [templating] Add sprig functions, replace some built-ins
|
||||
* [editor] Add all template functions to highlighter
|
||||
* [templating] Add sprig functions, replace some built-ins ⚠
|
||||
|
||||
* Bugfixes
|
||||
|
||||
|
|
|
@ -63,12 +63,9 @@ func (t *templateFuncProvider) GetFuncMap(m *irc.Message, r *plugins.Rule, field
|
|||
}
|
||||
|
||||
func (t *templateFuncProvider) GetFuncNames() []string {
|
||||
t.lock.RLock()
|
||||
defer t.lock.RUnlock()
|
||||
|
||||
var out []string
|
||||
|
||||
for n := range t.funcs {
|
||||
for n := range t.GetFuncMap(nil, nil, nil) {
|
||||
out = append(out, n)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue