From 11c0dd205cb3587b799ce330a28dbbad5e54f595 Mon Sep 17 00:00:00 2001 From: Chris Angelico Date: Thu, 16 Jan 2025 12:09:53 +1100 Subject: [PATCH] streamsetup: Cope with lack of cfg --- modules/http/chan_streamsetup.pike | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/http/chan_streamsetup.pike b/modules/http/chan_streamsetup.pike index 0687ed5b..c475c488 100644 --- a/modules/http/chan_streamsetup.pike +++ b/modules/http/chan_streamsetup.pike @@ -273,7 +273,7 @@ constant vars_provided = ([ ]); __async__ mapping message_params(object channel, mapping person, array param, mapping cfg) { - if (cfg->simulate) return ([]); //TODO: Query once and then cache, so it gives correct results w/o spamming API calls + if (cfg->?simulate) return ([]); //TODO: Query once and then cache, so it gives correct results w/o spamming API calls string token = token_for_user_id(channel->userid)[0]; if (token == "") error("Need broadcaster permissions\n"); mapping prev = await(twitch_api_request("https://api.twitch.tv/helix/channels?broadcaster_id=" + channel->userid,