summaryrefslogtreecommitdiffstats
path: root/scripts/cron.pl
diff options
context:
space:
mode:
authorDavid Leadbeater2015-01-10 16:57:01 +0000
committerDavid Leadbeater2015-01-10 16:57:01 +0000
commitcbbdf2a1d93dbb64d3fb34346e9c57b14dfa2931 (patch)
tree019203a11e96a90be76a4538433e1d223a747d55 /scripts/cron.pl
parent0a3941245c1cbb55dd3c67af0b5c33caddd04f8b (diff)
parent71dba3f266191eeeff577303232d700fefe2e6e1 (diff)
downloadscripts.irssi.org-cbbdf2a1d93dbb64d3fb34346e9c57b14dfa2931.tar.bz2
Merge branch 'gh-pages' of gh:irssi/scripts.irssi.org into gh-pages
Conflicts: _data/scripts.yaml
Diffstat (limited to 'scripts/cron.pl')
-rw-r--r--scripts/cron.pl7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/cron.pl b/scripts/cron.pl
index 9e1d125..0d1ac1e 100644
--- a/scripts/cron.pl
+++ b/scripts/cron.pl
@@ -40,6 +40,9 @@
# ? should we remember if the server was given with -server
#
# Changelog:
+# 0.12 (2014.11.12)
+# Automatically load jobs when loaded
+#
# 0.11 (2004.12.12)
# Job are executed exactly at the time (+- 1s), not up to 59s late
#
@@ -69,7 +72,7 @@ use Irssi;
use strict;
use vars qw($VERSION %IRSSI);
-$VERSION = "0.11";
+$VERSION = "0.12";
%IRSSI = (
authors => 'Piotr Krukowiecki',
contact => 'piotr \at/ krukowiecki /dot\ net',
@@ -290,6 +293,8 @@ sub cmd_jobsload {
Irssi::print("Jobs loaded");
}
+cmd_jobsload();
+
Irssi::command_bind('jobs', 'cmd_jobs', 'Cron');
Irssi::command_bind('jobadd', 'cmd_jobadd', 'Cron');
Irssi::command_bind('jobdel', 'cmd_jobdel', 'Cron');