Skip to content

Commit

Permalink
Fixes Issue #83
Browse files Browse the repository at this point in the history
Countdown no longer triggers, when "#ember1019" aka messagebox is empty.
Somehow @Zephymastyx removed that exception in #81
should be noted that methodnames for that feature are a little bit
confusing when searching for the triggerpoint :D
  • Loading branch information
MeikTranel committed Mar 4, 2014
1 parent b54340b commit ba40d9a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chat_filter.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
* /u/redopium
* /u/codefusion
* /u/Zephymastyx
* /u/anonveggy
*/

/* global unsafeWindow:false */
Expand Down Expand Up @@ -571,7 +572,7 @@ function countdown_input(){
}

function update_button(){
var is_same_input = $(textarea_elem).val() == last_input;
var is_same_input = $(textarea_elem).val() == last_input;
var relevant_countdown = is_same_input ? same_input_countdown : input_countdown;
var button = $(button_elem);
if(relevant_countdown <= 0)
Expand Down Expand Up @@ -605,6 +606,7 @@ function get_current_input(){
}

function update_user_input(){
if(current_input.trim() == '') return;
last_input = current_input;
current_input = false;
disable_button(input_time_limit);
Expand Down

0 comments on commit ba40d9a

Please sign in to comment.