aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshabble <shabble@horsey.local>2011-08-15 12:47:48 +0000
committershabble <shabble@horsey.local>2011-08-15 12:47:48 +0000
commitf3f4d3bd4fb76aea0bb60247dfa8b8efff06d52c (patch)
treeea3ff4bab08fb50cb60c5d530948d3d04c1380e1
parentMerge branch 'master' of github.com:shabble/irssi-scripts (diff)
downloadirssi-scripts-f3f4d3bd4fb76aea0bb60247dfa8b8efff06d52c.tar.gz
irssi-scripts-f3f4d3bd4fb76aea0bb60247dfa8b8efff06d52c.zip
added a delay to the /password function to make the input change show up.
-rw-r--r--feature-tests/hide_password.pl10
1 files changed, 7 insertions, 3 deletions
diff --git a/feature-tests/hide_password.pl b/feature-tests/hide_password.pl
index 2fe01fc..695a985 100644
--- a/feature-tests/hide_password.pl
+++ b/feature-tests/hide_password.pl
@@ -82,9 +82,13 @@ sub init {
}
sub cmd_password {
- # Hmm, broken.
- #Irssi::gui_input_set('Password: ');
- begin_entry_redirect();
+
+ # not sure why this delay is needed, but otherwise
+ # setting the input (" Password: ") doesn't work.
+ Irssi::timeout_add_once(10, sub {
+ Irssi::gui_input_set('Password: ');
+ begin_entry_redirect();
+ }, 0);
}
sub begin_entry_redirect {