Skip to content

Commit

Permalink
streamsetup: Cope with lack of cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosuav committed Jan 16, 2025
1 parent 6775631 commit 11c0dd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/http/chan_streamsetup.pike
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 11c0dd2

Please sign in to comment.