From f3f4d3bd4fb76aea0bb60247dfa8b8efff06d52c Mon Sep 17 00:00:00 2001 From: shabble Date: Mon, 15 Aug 2011 13:47:48 +0100 Subject: added a delay to the /password function to make the input change show up. --- feature-tests/hide_password.pl | 10 +++++++--- 1 file 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 { -- cgit v1.2.3