Fix manageHook for WeeChat.