#
-# Copyright (C) 2007-2019 by Peder Stray <peder@ninja.no>
+# Copyright (C) 2007-2021 by Peder Stray <peder.stray@gmail.com>
#
use strict;
use Irssi;
use Irssi::Irc;
-use Data::Dumper;
-$Data::Dumper::Indent = 1;
-
use vars qw{$VERSION %IRSSI};
($VERSION) = ' $Revision: 1.2 $ ' =~ / (\d+\.\d+) /;
%IRSSI = (
name => 'autochannel',
authors => 'Peder Stray',
- contact => 'peder@ninja.no',
- url => 'http://ninja.no/irssi/autochannel.pl',
+ contact => 'peder.stray@gmail.com',
+ url => 'https://github.com/pstray/irssi-autochannel',
license => 'GPL',
description => 'Auto add channels to channel list on join',
);
#
-# Copyright (C) 2004-2019 by Peder Stray <peder@ninja.no>
+# Copyright (C) 2004-2021 by Peder Stray <peder.stray@gmail.com>
#
use strict;
%IRSSI = (
name => 'chansort',
authors => 'Peder Stray',
- contact => 'peder@ninja.no',
- url => 'http://ninja.no/irssi/chansort.pl',
+ contact => 'peder.stray@gmail.com',
+ url => 'https://github.com/pstray/irssi-chansort',
license => 'GPL',
description => 'Sort all channel and query windows',
);
#
-# Copyright (C) 2003 by Peder Stray <peder@ninja.no>
+# Copyright (C) 2003-2021 by Peder Stray <peder.stray@gmail.com>
#
use strict;
%IRSSI = (
name => 'dccmove',
authors => 'Peder Stray',
- contact => 'peder@ninja.no',
- url => 'http://ninja.no/irssi/dccmove.pl',
+ contact => 'peder.stray@gmail.com',
+ url => 'https://github.com/pstray/irssi-dccmove',
license => 'GPL',
description => 'Move completed dcc gets to the subfolder done',
);
#
-# Copyright (C) 2001-2021 by Peder Stray <peder@ninja.no>
+# Copyright (C) 2001-2021 by Peder Stray <peder.stray@gmail.com>
#
use strict;
%IRSSI = (
name => 'friends',
authors => 'Peder Stray',
- contact => 'peder@ninja.no',
- url => 'http://ninja.no/irssi/friends.pl',
+ contact => 'peder.stray@gmail.com',
+ url => 'https://github.com/pstray/irssi-friends',
license => 'GPL',
- description => 'Basicly an autoop script with a nice interface and nick coloring ;)',
+ description => 'Basically an autoop script with a nice interface and nick coloring ;)',
);
my(%friends, @friends);
#
-# Copyright (C) 2001-2013 by Peder Stray <peder@ninja.no>
+# Copyright (C) 2001-2021 by Peder Stray <peder.stray@gmail.com>
#
use strict;
%IRSSI = (
name => 'keepnick',
authors => 'Peder Stray',
- contact => 'peder@ninja.no',
- url => 'http://ninja.no/irssi/keepnick.pl',
+ contact => 'peder.stray@gmail.com',
+ url => 'https://github.com/pstray/irssi-keepnick',
license => 'GPL',
description => 'Try to get your nick back when it becomes available.',
);
local(*CONF);
return if $auto && !Irssi::settings_get_bool('keepnick_autosave');
- open CONF, ">", $file;
+ open CONF, ">", $file;
for my $net (sort keys %keepnick) {
print CONF "$net\t$keepnick{$net}\n";
$count++;
#! /usr/bin/perl
#
-# Copyright (C) 2002-2019 by Peder Stray <peder.stray@gmail.com>
+# Copyright (C) 2002-2021 by Peder Stray <peder.stray@gmail.com>
#
# This is a standalone perl program and not intended to run within
# irssi, it will complain if you try to...
#
-# Copyright (C) 2001-2019 by Peder Stray <peder@ninja.no>
+# Copyright (C) 2001-2021 by Peder Stray <peder.stray@gmail.com>
#
use strict;
%IRSSI = (
name => 'query',
authors => 'Peder Stray',
- contact => 'peder@ninja.no',
- url => 'http://ninja.no/irssi/query.pl',
+ contact => 'peder.stray@gmail.com',
+ url => 'https://github.com/pstray/irssi-query',
license => 'GPL',
description => 'Give you more control over when to jump to query windows and when to just tell you one has been created. Enhanced autoclose.',
);
local *FILE;
%defaults = ();
- open FILE, '<',$file;
+ open FILE, "<", $file;
while (<FILE>) {
my($mask,$maxage,$immortal) = split;
$defaults{$mask}{maxage} = $maxage;
my $file = Irssi::get_irssi_dir."/query";
local *FILE;
- open FILE, '>', $file;
+ open FILE, ">", $file;
for (keys %defaults) {
my $d = $defaults{$_};
print FILE join("\t", $_,
}
sub sig_session_restore {
- open STATE, sprintf "< %s/query.state", Irssi::get_irssi_dir;
+ open STATE, "<", sprintf "%s/query.state", Irssi::get_irssi_dir;
%state = (); # only needed if bound as command
while (<STATE>) {
chomp;
}
sub sig_session_save {
- open STATE, sprintf "> %s/query.state", Irssi::get_irssi_dir;
+ open STATE, ">", sprintf "%s/query.state", Irssi::get_irssi_dir;
for my $tag (keys %state) {
for my $nick (keys %{$state{$tag}}) {
print STATE join("\t",$tag,$nick,%{$state{$tag}{$nick}}), "\n";
#
-# Copyright (C) 2002-2019 by Peder Stray <peder@ninja.no>
+# Copyright (C) 2002-2021 by Peder Stray <peder.stray@gmail.com>
#
use strict;
%IRSSI = (
name => 'upgradeinfo',
authors => 'Peder Stray',
- contact => 'peder@ninja.no',
- url => 'http://ninja.no/irssi/upgradeinfo.pl',
+ contact => 'peder.stray@gmail.com',
+ url => 'https://github.com/pstray/irssi-upgradeinfo',
license => 'GPL',
description => 'Statusbar item notifying you about updated binary',
sbitems => 'upgradeinfo',
#
-# Copyright (C) 2002-2019 by Peder Stray <peder@ninja.no>
+# Copyright (C) 2002-2021 by Peder Stray <peder.stray@gmail.com>
#
use strict;
%IRSSI = (
name => 'uptime',
authors => 'Peder Stray',
- contact => 'peder@ninja.no',
- url => 'http://ninja.no/irssi/uptime.pl',
+ contact => 'peder.stray@gmail.com',
+ url => 'https://github.com/pstray/irssi-uptime',
license => 'GPL',
description => 'Try a little harder to figure out client uptime',
sbitem => 'uptime',