mirror of
https://github.com/weechat/weechat.git
synced 2026-07-09 11:13:12 +02:00
plugins: remove check of NULL pointers before calling weechat_unhook() (issue #865)
This commit is contained in:
@@ -135,9 +135,7 @@ logger_config_color_lines_change (const void *pointer, void *data,
|
||||
if (logger_config_loading)
|
||||
return;
|
||||
|
||||
if (logger_hook_print)
|
||||
weechat_unhook (logger_hook_print);
|
||||
|
||||
weechat_unhook (logger_hook_print);
|
||||
logger_hook_print = weechat_hook_print (
|
||||
NULL, NULL, NULL,
|
||||
(weechat_config_boolean (logger_config_file_color_lines)) ? 0 : 1,
|
||||
|
||||
Reference in New Issue
Block a user