mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 03:40:16 +02:00
Updated the bundled scripts to their latest version (#143)
Updated the bundled scripts to their latest version (#143) Removed sb_search.pl which is not contributed into the script archive, I will poke coekie about it.
This commit is contained in:
parent
788f181ecb
commit
a663d2f674
10 changed files with 142 additions and 222 deletions
|
|
@ -21,7 +21,7 @@ sub cmd_quit {
|
|||
my ($data, $server, $channel) = @_;
|
||||
return if ($data ne "");
|
||||
|
||||
open (f, $quitfile) || return;
|
||||
open (f, "<", $quitfile) || return;
|
||||
my $lines = 0; while(<f>) { $lines++; };
|
||||
|
||||
my $line = int(rand($lines))+1;
|
||||
|
|
@ -38,7 +38,7 @@ sub cmd_quit {
|
|||
close(f);
|
||||
|
||||
foreach my $server (Irssi::servers) {
|
||||
$server->command("disconnect ".$server->{tag}." $quitmsg");
|
||||
$server->command("/disconnect ".$server->{tag}." $quitmsg");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue