irssi / scripts.irssi.org Goto Github PK
View Code? Open in Web Editor NEWScript Repository for Irssi
Home Page: https://scripts.irssi.org
Script Repository for Irssi
Home Page: https://scripts.irssi.org
I just installed recentdepart. It seems to work fine but sometimes it displays the following error message in the status window:
Use of uninitialized value in subtraction (-) at /home/thiht/.irssi/scripts/autorun/recentdepart.pl line 254.
It would be nice if someone could look into getting Travis CI running for irssi/scripts.git with the following features:
I don't have the needed Perl knowledge to do this, so I will let it be up for someone else to take care of.
sb_search.pl was removed from the default scripts because it is not here:
Removed sb_search.pl which is not contributed into the script archive, I will poke coekie about it.
Which means that with my 0.8.18 git install, the only way i have to get it is through a 0.8.17 release. Also my /scrollback search broke when upgrading, surprising no absolutely one.
@coekie @GeertHauwaerts poke
Not sure why poking is needed, probably asking for permission to upload it here, which i'm not sure why it's needed since it's one of the few scripts that has a proper GPLv2 header with copyrights.
https://github.com/irssi/scripts.irssi.org/blob/master/scripts/slack_complete.pl
It looks like the script doesn't work with Gitter anymore.
They changed the API for https://irc.gitter.im/ and Gitter only submits the first 31 nicks for each channel's memberlist (gitterHQ/irc-bridge#52 or gitterHQ/irc-bridge#55).
While the script works fine with those random 31 nicks. It doesn't with all other nicks writing public messages. Irssi auto completes those other nicks just fine the IRC way: "nick:" There might be a way to get those nicks extracted from public messages and add them manually to the nicklist via https://github.com/shabble/irssi-docs/wiki/Channel#nick_insert_%24nick%2C_%24op%2C_%24voice%2C_%24send_massjoin
Then all nick related Gitter channels would work transparently, by manually trickle in recent nicks.
Ubuntu 15.04 x64
kindone@foobar:~$ perl -v
This is perl 5, version 20, subversion 2 (v5.20.2) built for x86_64-linux-gnu-thread-multi
12:35:51 defined(%hash) is deprecated at /home/kindone/.irssi/scripts/autorun/trigger.pl line 716.
12:35:51
12:35:51 I(Maybe you should just omit the defined()?)
12:35:51
12:35:51 defined(%hash) is deprecated at /home/kindone/.irssi/scripts/autorun/trigger.pl line 725.
12:35:51
12:35:51 I(Maybe you should just omit the defined()?)
12:35:51
Alpine Linux x64
localhost:~$ perl -v
This is perl 5, version 22, subversion 0 (v5.22.0) built for x86_64-linux-thread-multi
12:35:22 -!- Irssi: Error in script trigger:
12:35:22 Can't use 'defined(%hash)' (Maybe you should just omit the defined()?) at /home/kindone/.irssi/scripts/autorun/trigger.pl line 716.
Cygwin x86
username@Desktop $ perl -v
This is perl 5, version 22, subversion 0 (v5.22.0) built for cygwin-thread-multi-64int
12:39:06 -!- Irssi: Error in script trigger:
12:39:06 Can't use 'defined(%hash)' (Maybe you should just omit the defined()?) at /home/username/.irssi/scripts/autorun/trigger.pl line 716.
The command
/ctrlact query #foo
does not work, unless I specify the network tag, e.g.
/ctrlact query -oftc #foo
The reason seems to be that the tag defaults to '*', which isn't properly matched.
(note to self…)
I'd like to see something like the below diff added to fnotify so that I can hilight messages that are annoying, but that I don't want to ignore. In my case, I'm hilighting them to a color that is close to my background color so they'll be subdued. The below change works for me (no fnotify ignores all hilighted messages with priority=0 which is the default priority) but it'd be nice for this to be a configureable variable.
--- fnotify-0.0.5.pl 2015-07-15 08:35:34.000000000 -0400
+++ fnotify.pl 2015-07-15 08:36:40.000000000 -0400
@@ -63,7 +63,7 @@
sub hilight {
my ($dest, $text, $stripped) = @_;
Use examples would be nice...
I'm finding a lot of these scripts don't even work. If you:
Alot of dependencies aren't even available in cpan. A ton of the scripts still won't work. Also, what's to say there aren't backdoors in any of these scripts?
hello guys
would be useful to a script to remotely restart irssi
example admin nick on chan admin get !restart
and is closed on the server and restart the process
tnx so much
Any way to have the script post the parsed url info to the channel in say, preferably with blacklist for channels you dont want it to trigger?
[ amaroknp ]| ✘ | ✔ | ✔ | 5 | ☡ |
[ babelirc ]| ✔ | ✔ | ✘ | 36 | ☡ |
[ cap_sasl_fail ]| ✘ | ✔ | ✔ | 2 | ☡ |
[ cap_sasl ]| ✘ | ✔ | ✔ | 7 | ☡ |
[ colorkick ]| ✘ | ✘ | ✔ | 14 | ☡ |
[ connectcmd ]| ✘ | ✔ | ✔ | 11 | ☡ |
[ dau ]| ✔ | ✔ | ✘ | 58 | ☡ |
[ dccself ]| ✔ | ✘ | ✔ | 8 | ☡ |
[ dnsspam ]| ✘ | ✔ | ✔ | 4 | ☡ |
[ hddtemp ]| ✘ | ✔ | ✔ | 9 | ☡ |
[ hitcount ]| ✘ | ✔ | ✔ | 4 | ☡ |
[ irc_chess ]| ✘ | ✔ | ✔ | 8 | ☡ |
[ ircgallery ]| ✘ | ✔ | ✔ | 7 | ☡ |
[ irssiq ]| ✘ | ✔ | ✘ | 50 | ☡ |
[ isdn ]| ✘ | ✔ | ✘ | 10 | ☡ |
[ ixmmsa ]| ✘ | ✔ | ✔ | 3 | ☡ |
[ kicks ]| ✔ | ✔ | ✘ | 37 | ☡ |
[ l33tmusic ]| ✘ | ✔ | ✔ | 6 | ☡ |
[ localize ]| ✔ | ✔ | ✘ | 37 | ☡ |
[ log2ansi ]| ✘ | ✘ | ✔ | 15 | ☡ |
[ mangle ]| ✘ | ✔ | ✘ | 23 | ☡ |
[ mkshorterlink ]| ✔ | ✘ | ✔ | 14 | ☡ |
[ newsline ]| ✔ | ✔ | ✘ | 34 | ☡ |
[ nicklist ]| ✔ | ✔ | ✘ | 17 | ☡ |
[ ogg123 ]| ✔ | ✔ | ✘ | 8 | ☡ |
[ oidenty ]| ✔ | ✔ | ✘ | 13 | ☡ |
[ on ]| ✔ | ✔ | ✘ | 20 | ☡ |
[ osd ]| ✘ | ✔ | ✔ | 8 | ☡ |
[ page-c0ffee ]| ✘ | ✔ | ✔ | 5 | ☡ |
[ pager ]| ✘ | ✔ | ✔ | 3 | ☡ |
[ query ]| ✔ | ✔ | ✘ | 30 | ☡ |
[ quizgr ]| ✘ | ✔ | ✔ | 6 | ☡ |
[ quizmaster-fr ]| ✔ | ✔ | ✘ | 27 | ☡ |
[ quizmaster ]| ✔ | ✔ | ✘ | 27 | ☡ |
[ quiz ]| ✔ | ✔ | ✘ | 8 | ☡ |
[ randaway ]| ✘ | ✔ | ✔ | 9 | ☡ |
[ scroller ]| ✘ | ✔ | ✔ | 3 | ☡ |
[ stocks ]| ✘ | ✔ | ✔ | 12 | ☡ |
[ sysinfoplus ]| ✔ | ✔ | ✘ | 27 | ☡ |
[ topicsed ]| ✔ | ✘ | ✘ | 18 | ☡ |
[ translit ]| ✔ | ✘ | ✔ | 8 | ☡ |
[ tvmusor ]| ✔ | ✘ | ✔ | 17 | ☡ |
[ wordcompletition ]| ✘ | ✔ | ✔ | 9 | ☡ |
[ xetra ]| ✘ | ✔ | ✔ | 11 | ☡ |
[ xmmsinfo ]| ✘ | ✔ | ✔ | 3 | ☡ |
Irssi v0.8.18-g8657cd2
04:47:45 Loaded scripts:
04:47:45 scriptassist /home/kindone/.irssi/scripts/autorun/scriptassist.pl
04:47:45 chansort /home/kindone/.irssi/scripts/autorun/chansort.pl
/script unload chansort.pl
04:47:55 -!- Irssi: Error in script scriptassist:
04:47:55 Undefined subroutine &Irssi::Script::chansort::pre_unload called at
/home/kindone/.irssi/scripts/autorun/scriptassist.pl line 1091.
04:47:55
04:47:55 -!- Irssi: Unloaded script chansort
The chanact.pl
script in this repo has diverged from usptream, available here. I've written to Stefan Völkel to get his input on how to proceed. This issue is mainly for information for now.
Term::ReadKey not found, and ioctl 'workaround' failed. Install the Term::ReadKey perl module to use screen mode.
I have manually tried to install Term::ReadyKey but it doesnt seem to fix the problem.
Irssi: Client: irssi 0.8.15 (20100403 1617)
NickList.pl VERSION = '0.4.6+' (from http://wouter.coekaerts.be/tmp/nicklist.pl)
would like to be able to tab over more than one nick in complete_at.pl
Compare:
http://ghscripts.irssi.org
http://scripts.irssi.org
First question ("How do I run scripts?") appears twice, which was fixed in a recent commit.
Github can't handle more than one CNAME per site, so I believe the ideal solution is to point ghscripts to a server which can do an HTTP redirect to the new site.
i've pointed scriptassist to the github repo (or i think i did) by setting scriptassist_script_sources = "http://ghscripts.irssi.org/scripts.dmp";
and also tried pointing to the github script.dmp file located at https://raw.githubusercontent.com/irssi/scripts.irssi.org/gh-pages/scripts.dmp
none of the functionality that is beyond local state doesn't work.
thanks!
It seems to mostly have to do with ~ and & prefixes.
I'm not merging them in by myself, I'll rather mention the authors so they can add their scripts themselves. Maybe they want to add some more scripts too :)
Missing scripts in this repository:
Scripts with newer versions available:
people.pl script tries to op people only when they join. If he fails to do it because he himself did not had +o at that time, he does not try it later once he gets +o himself.
18:06 -!- mode/#cjdns-pl [+o rfreemanw] by atest
18:06 -!- rfreemanw [~rfreew@fc31:...] has left #cjdns-pl [Leaving]
18:06 -!- rfreemanw [~rfreew@fc31:...] has joined #cjdns-pl
meshnetpl bot can not OP rfreeman because himself he is not opped now
18:06 -!- mode/#cjdns-pl [+o meshnetpl] by atest
meshnetpl does not see it now can OP rfreemanw
18:08 -!- rfreemanw [~rfreew@fc31:...] has left #cjdns-pl [Leaving]
18:08 -!- rfreemanw [~rfreew@fc31:...] has joined #cjdns-pl
18:08 -!- mode/#cjdns-pl [+ov rfreemanw rfreemanw] by meshnetpl
only now it tries again
Expected outcome:
when ever the bot is opped, it should look again at all nicks, is there anyone he would like to op, and if yes then he should op them.
2007 Irssi: Error in script mass_hilight_blocker:
2007 Trailing \ in regex m/ivan\/ at /home/brott/.irssi/scripts/autorun/mass_hilight_blocker.pl line 47.
https://github.com/irssi/scripts.irssi.org/blob/gh-pages/scripts/mass_hilight_blocker.pl#L47
The current scripts.yaml file is obviously autogenerated. It seems pointless to manually duplicate the effort of filling that information
I know perl parsing isn't trivial (and in fact I got this idea because i noticed the parsed information handles string concatenation wrong, which reminded me that the previous scripts repo worked this way), but any possible bugs in the parsing can be fixed with the magic of pull requests.
And submitting scripts is more effort than it should be.
use strict;
use warnings;
use vars qw($VERSION %IRSSI);
$VERSION = '1.00';
%IRSSI = (
authors => 'Ene Alin Gabriel',
contact => '[email protected]',
name => 'zlist',
description => 'Listing of channel names and save them',
license => 'why?',
url => 'http://foonet.ro',
);
use Irssi;
my %zlist = ();
sub collect {
my ($server, $data) = @_;
my (undef, $channel, $users, $topic) = split(/\s/, $data, 4);
$topic = substr($topic, 1);
$zlist{$channel} = [ $users, $topic ];
}
sub list {
my ($data, $server) = @_;
%zlist = ();
print "%K[%n".$server->{'tag'}."%K]%n %B<-->%n zlist";
}
sub show {
my ($server) = @_;
my ($printstring, $channel);
for $channel ( sort { ${ $zlist{$b} }[0] <=> ${ $zlist{$a} }[0] } keys %zlist ) {
$printstring = "".$channel." :: ".sprintf("%d",${ $zlist{$channel} }[0])."\n";
if (length ${ $zlist{$channel} }[1] > 0 ) {
$printstring .= "". ${ $zlist{$channel} }[1]."\n";
}
print $printstring;
my $file="".$server->{'tag'}."_index.txt";
open(my $fh, '>>', $file) or die ("can't open file: $1");
print $fh "$printstring\n";
close $fh;
}
%zlist = ();
print "%K[%n".$server->{'tag'}."%K]%n %B<-->%n End of zlist";
}
Irssi::command_bind('list', &list);
Irssi::signal_add('event 322', &collect);
Irssi::signal_add('event 323', &show);
print "%B<-->%n zlist v$VERSION: Simply use /list as you always do";
The latest commit (dd80027 on 19 Oct 2014) broke mail.pl. This script is not compatible with "use strict" - at least not in the buggy state it is at the moment.
When I tried using your beep_beep plugin, I got output from the default command overflowing into the IRSSI buffer.
Not sure how to get this going. IIUC https://raw.githubusercontent.com/irssi/scripts.irssi.org/gh-pages/scripts/nickcolor.pl suggests we should just use ~13 colours and then I'm suffering with conflicts, i.e. nicks with same colours.
user@linux ~ $ irssi -v
irssi 1.1-g10cea6169 (20170514 0944)
./configure --prefix=/usr --enable-silent-rules --enable-true-color --with-socks --with-bot --with-proxy
user@linux ~ $ perl -v
This is perl 5, version 24, subversion 1 (v5.24.1) built for i686-linux-gnu-thread-multi-64int
(with 65 registered patches, see perl -V for more detail)
17:08 Loaded scripts:
17:08 showhilight /home/user/.irssi/scripts/autorun/showhilight.pl
irssi:
/hilight foobar
/join #somechannel
/win 1
Second connection:
/msg #somechannel showhilights is %100 buggy foobar
The fancy_abbrev
feature is great except when it actually obscures information. Unfortunately, I cannot find a way by which to influence the target length of the abbreviated string, or a way to turn this abbreviation off.
I understand that the target length seems to be calculated from the actual window width, but shouldn't that be configurable, if desired?
Setting the target length to a real high number (or -1) could then be a indication to avoid this feature altogether.
problem with the underling module Geo::Weather
https://rt.cpan.org/Public/Dist/Display.html?Name=Geo-Weather
http://search.cpan.org/search?query=geo::weather&mode=all
-> 27 Aug 2003
trackbar.pl script in line 192 uses smartmatch (~~) which has been marked in newer perl as experimental, thus throwing errors and making scripts not load.
The check for autoaway_state in line https://github.com/irssi/scripts.irssi.org/blob/gh-pages/scripts/autoaway.pl#L82 is dead code because in the line before https://github.com/irssi/scripts.irssi.org/blob/gh-pages/scripts/autoaway.pl#L77 the same variable is set to zero, so it can't be two.
How can i get this working on OSX?
Solution: #226 (comment)
These are the errors i have encountered:
>> Please wait...
<< There was an error in background processing:
-!- Irssi: Fetching script database failed: 500
Can't verify SSL peers without knowing which Certificate Authorities to trust
I tried; sudo cpan install Mozilla::CA
.
Now I get this error:
>> Please wait...
<< There was an error in background processing:
-!- Irssi: Fetching script database failed: 500 Can't connect to scripts.irssi.org:443
(certificate verify failed)
-!- Irssi: LWP::Protocol::https::Socket: SSL connect attempt failed with unknown error
error:0D0C50A1:asn1 encoding routines:ASN1_item_verify:unknown message digest algorithm
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify
failed at /System/Library/Perl/Extras/5.18/LWP/Protocol/http.pm line 51.
I tried; sudo cpan install Bundle::LWP
.
Now I get this error:
>> Please wait...
<< There was an error in background processing:
-!- Irssi: Fetching script database failed: 500 Can't connect to scripts.irssi.org:443
(certificate verify failed)
-!- Irssi: LWP::Protocol::https::Socket: SSL connect attempt failed with unknown error
error:0D0C50A1:asn1 encoding routines:ASN1_item_verify:unknown message digest algorithm
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify
failed at /Library/Perl/5.18/LWP/Protocol/http.pm line 47.
My apologies if this is something totally obvious;
I currently have very minimal experience with Perl.
/trigger add -all -masks '*!*@*' -regexp 'foo' -replace 'bar'
results in a replacement never happening.
/trigger add -all -regexp 'foo' -replace 'bar'
works as expected.
Changing the 'types'
declaration (here) for the masks filter to ['publics']
instead of \@all_types
and using -publics
instead of -all
fixes this for what I need it for, not too familiar with Perl though, so I can't offer a proper fix.
I have no idea what has happened to my sysinfo. It was literally working fine yesterday. Now i get this error. I redownloaded it and replaced the existing one with the download and i still get the same error
Heres what line 408 looks like..
$varp = sprintf("%.2f", $vard / $vara * 100);
And heres my perl.
This is perl 5, version 24, subversion 1 (v5.24.1) built for x86_64-linux-thread-multi
Looks like the bundled script is newer and better. The version number could be updated.
System: Linux/Debian "Stretch"
Desktop: LXDE/Openbox
Default Browser: Iceweasel/Firefox
Running the command /url
causes the error:
/urlsh: 1: netscape-remote: not found
No browser window/tab opens with last posted url.
sub url_cmd{}
.In case of Debian following lines work:
system("iceweasel --new-tab $lasturl &>/dev/null");
system("firefox --new-tab $lasturl &>/dev/null");
instead of
system("netscape-remote -remote ... etc ... &>/dev/null");
near line 38 in function sub url_cmd{}
.
Hey,
when I do:
/rsay something, and then some
the output is (from my side):
something,, and then some
At least on the OFTC network, the PRIVMSG
sent to self isn't enough to make a user appear un-idle. I have not yet found a better way.
Currently, my proposal #14 for travis testing is not POSIX sh compatible. Some people find this desirable but my sh skills are not too well.
I think it should be possible to log all messages posted to the hilight window.
I've tried /window log
which doesn't work.
Is it possible to do this?
It would be cool if the AWL could be sorted in order of activity first occuring, i.e. the item on the left end would be the one that had activity before all the others, while an item that receives activity for the first time would be appended to the right.
Or vice versa, with '-' prepended…
I stared at the code for a while but couldn't figure it out. If you have any clues, then I could also just give it a try.
Not sure, but maybe in line 123 expected => "FS#155 hilight -tag",
of the urlinfo.pl script the part FS#155
looks somehow wrong to me. Not sure what it stands for, nor is it a color HEX code, since there is no S, only ABCDEF and numbers from 0-9 in color HEX. And maybe it is not connected to the issue I have here, but the script doesn't work properly, when a GitHub bot posts links in dev channels.
Examples from #lxde on Freenode:
[16:03] < GitHub> [qtermwidget] f2404 opened pull request #73: Allow app to add custom color sheme locations (master...141_custom_color_scheme_dir) https://github.com/lxde/qtermwidget/pull/73
urlinfo error: GET failed on https://github.com/lxde/qtermwidget/pull/73F: 404 Not Found
[16:13] < GitHub> [libqtxdg] luis-pereira created fix-coding-typo (+1 new commit): https://github.com/lxde/libqtxdg/commit/fee311814b15
urlinfo error: GET failed on https://github.com/lxde/libqtxdg/commit/fee311814b15F: 404 Not Found
urlinfo seems to add an F on the end of the url it tries to grab, and I am not sure if this is connected to line 123 or another bug.
So, just learnt about scriptassist and ran /scriptassist check. This surprised me:
| o cap_sasl Your version is newer (1.5->1.1)
When investigating, I found that the version for cap_sasl is set to 1.10 in this repo. If you treat version numbers as floats I understand what scriptassist is getting at, but version numbers are not floats, so the result in this case is incorrect - 1.10 is a newer version than 1.5. However, it seems like more complex version numbers (such as screen_away 0.9.8.1) do not cause any problems, so I might be wrong with my assumption that the issue is comparing version numbers as floats.
In addition, as I mentioned, the latest cap_sasl version is 1.10, but scriptassist and the website reports it as being 1.1.
I've been running adv_windowlist for a long time, and just recently got around to upgrading from 0.6ca->1.3 since quite a lot has changed - but somehow, I end up with a tiny 2-character pane which (when expanded) reveals the following error message: Negative repeat count does nothing at /home/debdrup/.irssi/scripts/adv_windowlist.pl line 1986.
Since I have absolutely no idea what that means, I'm hoping someone more clever than me can come up with a solution. If it's relevant, here is some system output:
Linux dogpound 4.4.0-45-generic #66-Ubuntu SMP Wed Oct 19 14:12:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
This is perl 5, version 22, subversion 1 (v5.22.1) built for x86_64-linux-gnu-thread-multi
tmux 2.1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.