Hi,
Being an oper on QuakeNet it's important to me that my passwords and
other authentication doesn't get logged or snooped by someone standing
behind my back. Therefore I turned to #irssi on QuakeNet today to ask if
there was a feature that'd let me input text in the prompt and store it
in variables, kindof like the way /oper works if you don't specify a
password.
Here's a summary of the log:
1329 < jasen> anyone here knows howto make irssi prompt the user for a
string (preferably without echo'ing it back for use with password) ?
1329 < jasen> just like the internal /oper commands does it
1932 <@Geert> jasen: You can't get such a promt from a Irssi script
(Perl), but that's possible from a Irssi plugin (C)
1945 < jasen> Geert: ok then
1945 < jasen> Geert: might that be a good suggestion for a feature ?
1946 <@Geert> Yes, it's just a minor change. Just the posibility to
Irssi::print(); something to the prompt
1949 < jasen> More like the possibility to my $password =
Irssi::Prompt(const ATTRIBUTE(eg. HIDDEN), string);
1949 < jasen> userfull for authenticating with Q etc. if you don't want passwords
logged
1950 <@Geert> jasen: Could you post that to the Irssi-dev mailinglist?
The ATTRIBUTE would work like ENTRY_REDIRECT_FLAG_HIDDEN does in in the
irssi source. Example from the oper function:
keyboard_entry_redirect((SIGNAL_FUNC) cmd_oper_got_pass,
format,
ENTRY_REDIRECT_FLAG_HIDDEN, rec);
I know it's possible to /^msg (thanks ali) in order to not log text, but
still I think this feature could be usefull in many situations, also
others than security (setup scripts, etc.).
So, there ya go. A mail as promissed.
--
Kim Norgaard