diff options
author | Ben Harris <ben@tilde.team> | 2019-06-25 10:18:27 -0400 |
---|---|---|
committer | Ben Harris <ben@tilde.team> | 2019-06-25 10:18:27 -0400 |
commit | 2370dab7d57711dfbc483e5e7f57acfce56c7dff (patch) | |
tree | 60190a1dbe5dd956b94f0ff4db42ebbe04e9e589 /weechat/.weechat/perl/highmon.pl | |
parent | d3246bcc2aac0f49245508605e5e1619182b01dd (diff) |
remove unused scripts
Diffstat (limited to 'weechat/.weechat/perl/highmon.pl')
-rw-r--r-- | weechat/.weechat/perl/highmon.pl | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/weechat/.weechat/perl/highmon.pl b/weechat/.weechat/perl/highmon.pl index 1c07712..066fa43 100644 --- a/weechat/.weechat/perl/highmon.pl +++ b/weechat/.weechat/perl/highmon.pl @@ -1,6 +1,6 @@ # # highmon.pl - Highlight Monitoring for weechat 0.3.0 -# Version 2.5 +# Version 2.6 # # Add 'Highlight Monitor' buffer/bar to log all highlights in one spot # @@ -73,6 +73,8 @@ # Bugs and feature requests at: https://github.com/KenjiE20/highmon # History: +# 2019-05-13, HubbeKing <hubbe128@gmail.com> +# v2.6: -add: send "logger_backlog" signal on buffer open if logging is enabled # 2014-08-16, KenjiE20 <longbow@longbowslair.co.uk>: # v2.5: -add: clearbar command to clear bar output # -add: firstrun output prompt to check the help text for set up hints as they were being missed @@ -306,7 +308,7 @@ sub highmon_buffer_open # Turn off notify, highlights if ($highmon_buffer ne "") { - if (weechat::config_get_plugin("hotlist_show" eq "off")) + if (weechat::config_get_plugin("hotlist_show") eq "off") { weechat::buffer_set($highmon_buffer, "notify", "0"); } @@ -317,6 +319,11 @@ sub highmon_buffer_open { weechat::buffer_set($highmon_buffer, "localvar_set_no_log", "1"); } + # send "logger_backlog" signal if logging is enabled to display backlog + if (weechat::config_get_plugin("logging") eq "on") + { + weechat::hook_signal_send("logger_backlog", weechat::WEECHAT_HOOK_SIGNAL_POINTER, $highmon_buffer) + } } return weechat::WEECHAT_RC_OK; } @@ -1124,7 +1131,7 @@ sub format_buffer_name } # Check result of register, and attempt to behave in a sane manner -if (!weechat::register("highmon", "KenjiE20", "2.5", "GPL3", "Highlight Monitor", "", "")) +if (!weechat::register("highmon", "KenjiE20", "2.6", "GPL3", "Highlight Monitor", "", "")) { # Double load weechat::print ("", "\tHighmon is already loaded"); |