Commit 528ea65 1 parent 2edaeeb commit 528ea65 Copy full SHA for 528ea65
File tree 1 file changed +3
-2
lines changed
code/controllers/configuration
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -381,11 +381,12 @@ Example config:
381
381
log_config (" Loading config file word_filter.toml..." )
382
382
383
383
var /list /word_filter = rustg_read_toml_file(" [ directory] /word_filter.toml" )
384
- if ( ! islist(word_filter) )
385
- var /message = " The word filter configuration did not output a list, contact someone with configuration access to make sure it's setup properly. "
384
+ if ( ! result[ " success " ] )
385
+ var /message = " The word filter is not configured correctly! [ result[ " content " ] ] "
386
386
log_config (message)
387
387
DelayedMessageAdmins (message)
388
388
return
389
+ var /list /word_filter = json_decode(result[" content" ])
389
390
390
391
ic_filter_reasons = try_extract_from_word_filter(word_filter, " ic" )
391
392
ic_outside_pda_filter_reasons = try_extract_from_word_filter(word_filter, " ic_outside_pda" )
You can’t perform that action at this time.
0 commit comments