aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--activity_bar.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/activity_bar.pl b/activity_bar.pl
index 88a99e1..8f576c3 100644
--- a/activity_bar.pl
+++ b/activity_bar.pl
@@ -75,8 +75,9 @@ sub activity_bar_command_cb {
if ($args eq 'disable') {
anybar_send('hollow');
weechat::unhook($print_hook);
+ $print_hook = undef;
}
- if ($args eq 'enable') {
+ if ($args eq 'enable' && !$print_hook) {
$print_hook = weechat::hook_print('', '', '', 0, 'print_cb', '');
}