archive- Random tools & helpful resources for IRC |
git clone git://git.acid.vegas/archive.git |
Log | Files | Refs | Archive |
sighup.pl (510B)
1 use strict; 2 use warnings; 3 4 no strict 'subs'; 5 6 my $SCRIPT_NAME = 'sighup'; 7 my $SCRIPT_AUTHOR = 'The Krusty Krab <wowaname@volatile.ch>'; 8 my $SCRIPT_VERSION = '1.0'; 9 my $SCRIPT_LICENCE = 'Public domain'; 10 my $SCRIPT_DESC = 'Reload config on SIGHUP'; 11 12 if (weechat::register($SCRIPT_NAME, $SCRIPT_AUTHOR, $SCRIPT_VERSION, 13 $SCRIPT_LICENCE, $SCRIPT_DESC, '', '')) { 14 weechat::hook_signal('signal_sighup', 'cb_sighup', ''); 15 } 16 17 sub cb_sighup { 18 weechat::command('', '/reload'); 19 20 return weechat::WEECHAT_RC_OK_EAT; 21 } 22