X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=videosite-weechat.pl;h=0f51c5cd33da756727bd99d2b949f0994946f071;hb=ba69db073455cd39baf7ff3834a4475ed7536a6e;hp=6e4034d7e56dea3586c64659c62d8eda42548a64;hpb=3aa109a9545cb5476bd7e8b4102c3012e3fd242b;p=videosite.git diff --git a/videosite-weechat.pl b/videosite-weechat.pl index 6e4034d..0f51c5c 100644 --- a/videosite-weechat.pl +++ b/videosite-weechat.pl @@ -67,9 +67,6 @@ sub config_del { sub colorpair { my ($fg, $bg) = @_; - $fg = defined($fg)?$fg:'default'; - $bg = defined($bg)?$bg:'default'; - return weechat::color($fg . ",", $bg); } @@ -119,6 +116,7 @@ sub videosite_reset { color => \&colorpair, module_path => sub { return File::Spec->catfile(weechat::info_get("weechat_dir", ""), 'perl') }, quote => sub { return $_ }, + reload => sub { weechat::print("", "Please use \"/script reload ...\" to reload") }, _debug => sub { 1 }, })) { weechat::print("", sprintf("videosite API register failed: %s", $libvideosite::error));