Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninjasoturi committed Nov 22, 2020
1 parent fa28953 commit cd822ee
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions logic/keys_vote.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,15 @@ function keys_vote($raid)
],
];
if(!$config->AUTO_REFRESH_POLLS) {
$buttons_refresh =
$buttons_refresh = [
[
'text' => EMOJI_REFRESH,
'callback_data' => $raid['id'] . ':vote_refresh:0'
];
$buttons_status = array_merge($buttons_refresh, $buttons_status);
[
'text' => EMOJI_REFRESH,
'callback_data' => $raid['id'] . ':vote_refresh:0'
]
]
];
$buttons_status[0] = array_merge($buttons_refresh[0], $buttons_status[0]);
}
// Raid ended already.
if ($end_time < $now) {
Expand Down
2 changes: 1 addition & 1 deletion logic/new_user.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
function new_user($user_id) {
global $config;
if(user_tutorial($user_id) < $config->TUTORIAL_LEVEL_REQUIREMENT) return true;
if(!$config->TUTORIAL_MODE || user_tutorial($user_id) < $config->TUTORIAL_LEVEL_REQUIREMENT) return true;
else return false;
}
?>

0 comments on commit cd822ee

Please sign in to comment.