Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add trivia.pl script #865

Merged
merged 4 commits into from
Nov 29, 2023
Merged

add trivia.pl script #865

merged 4 commits into from
Nov 29, 2023

Conversation

terminaldweller
Copy link
Contributor

it accepts a list in the form of "server1/#channel1,Tag1 regex2,Tag2" and regex-substring-matches againt the server and window name. it it matches, returns the tag for the winsow as an expando.
I use it to orgaize different protocols. it helps to see a matrix or xmpp tag somewhere if you have almost 200 windows.

Irssi::signal_add('setup changed' => 'setup_changed');

%trivia_list = map { my @temp = split(',', $_); $temp[0] => $temp[1] } split(' ', Irssi::settings_get_str('trivia_list'));
Irssi::print(%trivia_list);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this a debug left-over?

Irssi::signal_add('window changed' => 'window_changed_handler');
Irssi::signal_add('setup changed' => 'setup_changed');

%trivia_list = map { my @temp = split(',', $_); $temp[0] => $temp[1] } split(' ', Irssi::settings_get_str('trivia_list'));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just call setup_changed() here ?

@terminaldweller
Copy link
Contributor Author

The test is complaining about the use v5.36. should I remove it?

@ailin-nemui ailin-nemui merged commit af772f7 into irssi:master Nov 29, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants