From 66534b6e8f98144f2e773db627939044891323cb Mon Sep 17 00:00:00 2001 From: Tom Feist Date: Wed, 6 Oct 2010 21:57:20 +0100 Subject: moved a handy snippet into my feature-tests dir for querying internal signals. --- feature-tests/internal_signals.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 feature-tests/internal_signals.pl diff --git a/feature-tests/internal_signals.pl b/feature-tests/internal_signals.pl new file mode 100644 index 0000000..e40587f --- /dev/null +++ b/feature-tests/internal_signals.pl @@ -0,0 +1,14 @@ +# not a complete script, just a useful snippet +Irssi::signal_register({'complete command set' + => ["glistptr_char*", "Irssi::UI::Window", + "string", "string", "intptr"]}); + +my @res = (); +my $num; +Irssi::signal_emit('complete command set', \@res, Irssi::active_win(), + '', '', \$num); + +print "results: @res"; + +# will return all the possible completions for the /set command. you can filter +# it by changing the 2 empty strings (word-fragment, and line context) -- cgit v1.2.3