SVN: toys/rsget.pl/RSGet: MOTD.pm Main.pm

sparky sparky at pld-linux.org
Mon Dec 20 00:49:47 CET 2010


Author: sparky
Date: Mon Dec 20 00:49:47 2010
New Revision: 12011

Added:
   toys/rsget.pl/RSGet/MOTD.pm
Modified:
   toys/rsget.pl/RSGet/Main.pm
Log:
- added message of the day


Added: toys/rsget.pl/RSGet/MOTD.pm
==============================================================================
--- (empty file)
+++ toys/rsget.pl/RSGet/MOTD.pm	Mon Dec 20 00:49:47 2010
@@ -0,0 +1,43 @@
+package RSGet::MOTD;
+# This file is an integral part of rsget.pl downloader.
+#
+# 2010 (c) Przemysław Iskra <sparky at pld-linux.org>
+#		This program is free software,
+# you may distribute it under GPL v2 or newer.
+
+use strict;
+use warnings;
+use RSGet::Line;
+
+sub init
+{
+	my @motd = grep /^-/, <DATA>;
+	close DATA;
+	my $motd = $motd[ int rand scalar @motd ];
+	$motd =~ s/-\s*//;
+	RSGet::Line->new( "Hint: ", $motd, undef, "green" );
+}
+
+1;
+
+__DATA__
+
+- Join us on IRC: #rsget.pl on irc.freenode.net
+
+- If you have a subversion client you can enable automatic updates with --use-svn=update
+
+- You can always get latest rsget.pl snapshot from http://rsget.pl/download/snapshot
+
+- Send SIGUSR2 if you want to restart rsget.pl
+
+- Sending SIGINT once will not terminate your current downloads
+
+- Use gtk asker for convenient captcha solving: http://rsget.pl/tools/gtk-captcha/
+
+- Use userscript to easily add multiple download links from your web browser: http://rsget.pl/tools/userscript/
+
+- Donate/lend premium accounts to rsget.pl developers if you want premium support for some service.
+
+- Found some bug ? Tell us about it: http://bugs.rsget.pl
+
+# vim: ts=4:sw=4

Modified: toys/rsget.pl/RSGet/Main.pm
==============================================================================
--- toys/rsget.pl/RSGet/Main.pm	(original)
+++ toys/rsget.pl/RSGet/Main.pm	Mon Dec 20 00:49:47 2010
@@ -19,6 +19,7 @@
 use RSGet::Plugin;
 use RSGet::Tools;
 use RSGet::Wait;
+use RSGet::MOTD;
 use Time::HiRes;
 set_rev qq$Id$;
 
@@ -118,6 +119,8 @@
 	new RSGet::Line();
 	warn $_ foreach discontinuation_warning;
 	new RSGet::Line();
+	RSGet::MOTD::init();
+	new RSGet::Line();
 	RSGet::Line::update();
 
 	loop();


More information about the pld-cvs-commit mailing list